import { PdfFile } from '../../types/drawing.ts' import { Box } from '@mui/material' import PdfItem from './PdfItem.tsx' import { CurrentUserMark } from '../../types/mark.ts' interface PdfViewProps { files: { pdfFile: PdfFile, filename: string, hash: string | null }[] currentUserMarks: CurrentUserMark[] handleMarkClick: (id: number) => void selectedMarkValue: string selectedMark: CurrentUserMark | null } /** * Responsible for rendering Pdf files. */ const PdfView = ({ files, currentUserMarks, handleMarkClick, selectedMarkValue, selectedMark }: PdfViewProps) => { const filterByFile = (currentUserMarks: CurrentUserMark[], hash: string): CurrentUserMark[] => { return currentUserMarks.filter((currentUserMark) => currentUserMark.mark.pdfFileHash === hash) } return ( { files.map(({ pdfFile, hash }, i) => { if (!hash) return return ( ) }) } ) } export default PdfView;