"use client"; import { CircleAlertIcon, LoaderCircleIcon } from "lucide-react"; import type { CalendarLoad } from "@/components/admin/useEvents"; import { CALENDARS } from "@/lib/calendars"; import { cn } from "@/lib/utils"; /** * One toggle per calendar. A row that scrolls sideways on phones rather than * wrapping into three lines of chrome above the list; wraps on wider screens. */ export function CalendarChips({ selected, counts, loads, onToggle, }: { selected: readonly number[]; counts: Record; loads: Record; onToggle: (calendarId: number) => void; }) { return (
{CALENDARS.map((calendar) => { const on = selected.includes(calendar.id); const load = loads[calendar.id]; return ( ); })}
); }