import { cn } from "@/lib/utils"; /** * The period switcher (30 days / 3 months / …) that sat hand-rolled above each * time-series chart. Same look, now shared, and exposed as a radio group so * screen readers announce the selected range. */ export function SegmentedControl({ options, value, onChange, label, className, }: { options: readonly { value: T; label: string }[]; value: T; onChange: (value: NoInfer) => void; label: string; className?: string; }) { return (
{options.map((o) => ( ))}
); }