import React from 'react'; import { PhotoIcon, DocumentTextIcon, DocumentIcon, TableCellsIcon, ArchiveBoxIcon, PaperClipIcon, } from '@heroicons/react/24/outline'; import { getAttachmentType } from '../../utils/attachmentsService'; interface FileIconProps { mimeType: string; className?: string; } const FileIcon: React.FC = ({ mimeType, className = 'h-5 w-5', }) => { const type = getAttachmentType(mimeType); switch (type) { case 'image': return ; case 'pdf': return ; case 'text': return ; case 'spreadsheet': return ; case 'archive': return ; default: return ; } }; export default FileIcon;