diff --git a/src/components/ui/SegmentedControl.tsx b/src/components/ui/SegmentedControl.tsx new file mode 100644 index 0000000..e270b11 --- /dev/null +++ b/src/components/ui/SegmentedControl.tsx @@ -0,0 +1,22 @@ +interface Option { label: string; value: T; } +interface Props { options: Option[]; value: T; onChange: (v: T) => void; } + +export function SegmentedControl({ options, value, onChange }: Props) { + return ( +
+ {options.map(opt => ( + + ))} +
+ ); +}