import type { Attachment } from '@/lib/types'; import { LoaderIcon } from './icons'; export const PreviewAttachment = ({ attachment, isUploading = false, }: { attachment: Attachment; isUploading?: boolean; }) => { const { name, url, contentType } = attachment; return (