import Link from 'next/link'; import { cn } from '@/lib/cn'; import { fmtInt } from '@/lib/format'; export type ChipItem = { href: string; label: string; count?: number | string | null; active?: boolean }; /** * Horizontal row of link chips (years, categories, ranges). Scrolls on mobile without a visible scrollbar, * wraps on desktop. Server component — selection lives in the URL. */ export function ChipRow({ items, label, className }: { items: ChipItem[]; label: string; className?: string }) { if (!items.length) return null; return ( ); }