export interface SegmentedOption { value: string; label: string; } export interface SegmentedControlProps { options: SegmentedOption[]; value: string; onChange: (value: string) => void; /** The group's accessible name — "Time range", "Environment". */ label?: string; className?: string; } export function SegmentedControl({ options, value, onChange, label, className, }: SegmentedControlProps) { return (
{options.map((option) => ( ))}
); }