import type React from "react"; import { Button } from "@/components/ui/button"; type SegmentedControlProps = { value: T; onChange: (value: T) => void; options: Array<{ value: T; label: string; icon: React.ReactNode; }>; }; /** * A segmented control component for selecting between different options */ function SegmentedControl({ value, onChange, options, }: SegmentedControlProps) { return (
{options.map((option) => ( ))}
); } export default SegmentedControl;