"use client"; import { Check, CloudDownload, Loader2, Pencil, RefreshCw, Sparkles, Trash2, WandSparkles, X, } from "lucide-react"; import { useTranslations } from "next-intl"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { previewAutoCatalog } from "@/lib/furni/auto-catalog"; import { FurnitureInspector } from "./furniture-inspector"; import { getFurniImageUrl, handleImgError } from "./studio-furni-icons"; import type { FurniItem } from "./studio-types"; interface FurnitureDetailDrawerProps { detail: FurniItem; importingId: string | null; regenerating: boolean; busy: boolean; inspectionKey: string; onClose: () => void; onImport: () => void; onEdit: () => void; onDelete: () => void; onRegenerate: () => void; onRepair: () => Promise; } export function FurnitureDetailDrawer({ detail, importingId, regenerating, busy, inspectionKey, onClose, onImport, onEdit, onDelete, onRegenerate, onRepair, }: FurnitureDetailDrawerProps) { const t = useTranslations("admin.studio.completeness"); const studioT = useTranslations("admin.studio"); const drawerT = useTranslations("admin.studio.drawer"); const typeLabel = detail.type === "wallitem" ? studioT("types.wall") : studioT("types.floor"); const detailPreview = previewAutoCatalog( detail.classname, detail.type === "wallitem" ? "i" : "s", ); return ( ); }