import { cn } from 'cn'; import { toneIndex } from '@/lib/design'; const TONE_CLASSES: Record = { 1: 'bg-tone-1', 2: 'bg-tone-2', 3: 'bg-tone-3', 4: 'bg-tone-4', 5: 'bg-tone-5', }; /** * Stand-in for a set without an image: the manufacturer's tone, a drawn * brick and the set number. Reads as intended rather than as "image broken". */ export function SetPlaceholder({ setNumber, manufacturerName, size = 'md', className, }: { setNumber: string; manufacturerName: string; size?: 'sm' | 'md' | 'lg'; className?: string; }) { const tone = TONE_CLASSES[toneIndex(manufacturerName)]; return (
{size !== 'sm' ? ( ) : null} 6 ? 'text-lg' : 'text-2xl'), size === 'lg' && 'text-5xl', )} > {setNumber}
); }