import { formatWeight, formatPrice } from "../lib/formatters"; import { useUIStore } from "../stores/uiStore"; interface ItemCardProps { id: number; name: string; weightGrams: number | null; priceCents: number | null; categoryName: string; categoryEmoji: string; imageFilename: string | null; } export function ItemCard({ id, name, weightGrams, priceCents, categoryName, categoryEmoji, imageFilename, }: ItemCardProps) { const openEditPanel = useUIStore((s) => s.openEditPanel); return ( ); }