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