import Link from 'next/link'; import { Check, Gift, ImageOff } from 'lucide-react'; import { cn } from 'cn'; import type { CatalogRow } from '@/lib/queries/catalog'; import { formatEuro } from '@/lib/money'; import { setImageSrc } from '@/lib/images'; import { Badge } from '@/components/ui/badge'; /** * One set in the catalog grid. * * Rendered as a plain block so it can be used both as a link (browsing) and * inside a selection wrapper (bulk add to a wishlist). */ export function SetCardContent({ set }: { set: CatalogRow }) { const image = setImageSrc(set); const owned = set.ownedCopies > 0; return (
{set.name}