type Option = { value: T; label: string }; type Props = { value: T; options: Option[]; onChange: (value: T) => void; ariaLabel?: string; }; export function AppSegmented({ value, options, onChange, ariaLabel, }: Props) { return (
{options.map((option) => ( ))}
); }