"use client" import * as React from "react" import { Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, type AttachmentState, } from "@/components/ui/attachment" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog" function FileIcon({ kind }: { kind?: "pdf" | "code" | "zip" | "sheet" | "image" | "generic" }) { const cls = kind === "pdf" ? "fa-light fa-file-pdf" : kind === "code" ? "fa-light fa-file-code" : kind === "zip" ? "fa-light fa-file-zipper" : kind === "sheet" ? "fa-light fa-file-spreadsheet" : kind === "image" ? "fa-light fa-image" : "fa-light fa-file" return