import { cn } from "../../lib/cn"; export type SegmentedControlProps = { items: { label: string; value: string }[]; /** Allow segments to move onto additional rows when the available width is limited. */ wrap?: boolean; value?: string; onValueChange?: (value: string) => void; }; export function SegmentedControl({ items, wrap = true, value, onValueChange, }: SegmentedControlProps) { const currentValue = value ?? items[0]?.value; return (