import React from "react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { X } from "lucide-react"; import { IDocument } from "@/lib/document/types"; interface DocumentBadgeProps { document: IDocument; onPreview: () => void; onRemove: () => void; removeable?: boolean; } export const DocumentBadge = React.memo(({ document, onPreview, onRemove, removeable = true }: DocumentBadgeProps) => ( {document.name} {removeable && ( )} )); DocumentBadge.displayName = "DocumentBadge";