import { ImageIcon, CircleDollarSign, Gift, Zap } from "lucide-react"; import { cn } from "../../lib/utils"; import { type Draft, TYPE_META, RARITY_META, LOOT_TYPE_META, } from "./ItemStudioTypes"; // ===== Item Preview Card ===== export function ItemPreviewCard({ draft, previewImageSrc, }: { draft: Draft; previewImageSrc: string | null; }) { const rarity = RARITY_META[draft.rarity]; const type = TYPE_META[draft.type]; const TypeIcon = type.icon; const lootboxEffect = draft.effects.find((e) => e.kind === "LOOTBOX"); return (
{draft.description}
)} {draft.price && Number(draft.price) > 0 && (