import { ChatFileCard } from "./ChatFileCard"; import type { ChatFile } from "@paperclipai/shared"; interface ChatFilePreviewProps { file: ChatFile; contentPath: string; } export function ChatFilePreview({ file, contentPath }: ChatFilePreviewProps) { if (file.category === "image") { return (
{file.originalFilename} {/* Always show card below image for download button */}
); } // For all non-image types (code, document, other): render the file card with download return ; }