--- interface Props { label: string; /** Which filter the bars toggle and count: `tag` or `tool`. */ facet: 'tag' | 'tool'; /** `[value, count]`, longest first. */ items: [string, number][]; accent?: string; } const { label, facet, items, accent } = Astro.props; /** * One ranked-bar block of the sheet filter's stats: label, a track filled in * proportion to the longest bar, count. Each row is a toggle for its value. * Used twice by SheetFilter (techniques, tools); the `data-sf-*` attributes * are read by scripts/sheet-filter.ts. */ const max = items[0]?.[1] ?? 1; const toggle = (value: string) => ({ [`data-sf-${facet}`]: value }); ---
{label}