interface Props { value: string; options: { value: string; label: string }[]; onChange: (v: string) => void; } export function Segment({ value, options, onChange }: Props) { return (
{options.map((o) => ( ))}
); }