From 45d50b2167189a5eeab48c96f7f1000d54c8da5a Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:17:28 +0330 Subject: [PATCH] Import source: src/components/ui/SegmentedControl Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- src/components/ui/SegmentedControl.tsx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/components/ui/SegmentedControl.tsx 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 => ( + + ))} +
+ ); +}