import { calendarById } from "@/lib/calendars"; import { cn } from "@/lib/utils"; /** The calendar an event belongs to, in that calendar's colour - never the bare id. */ export function CalendarBadge({ calendarId, className }: { calendarId: number; className?: string }) { const calendar = calendarById(calendarId); return ( {calendar?.label ?? `Kalender ${calendarId}`} ); }