import { type ComponentPropsWithoutRef } from 'react'; import { Tabs as RTabs } from 'radix-ui'; import { cx } from '../utils'; export const Tabs = RTabs.Root; export const TabsList = ({ items, className, ...props }: { items: Array<{ value: string; label: string }> } & Omit< ComponentPropsWithoutRef, 'children' >) => ( {items.map((it) => ( {it.label} ))} ); export const TabsContent = RTabs.Content;