import { Tabs as TabsPrimitive, TabsList, TabsTrigger } from "@/components/ui/tabs"; type TabsProps = { options: readonly T[]; active: T; onChange: (value: T) => void; }; export default function Tabs({ options, active, onChange }: TabsProps) { return ( onChange(v as T)}> {options.map((option) => ( {option} ))} ); }