import { cn } from '@/lib/utils' export function Tabs({ value, onValueChange, items, className, size = 'md', }: { value: string onValueChange: (v: string) => void items: { value: string; label: string }[] className?: string size?: 'sm' | 'md' | 'lg' }) { const tabSizes = { sm: 'px-2.5 py-1 text-[12px]', md: 'px-3.5 py-1.5 text-[13px]', lg: 'px-4 py-2 text-[14px]', } return (
{items.map((item) => { const active = value === item.value return ( ) })}
) }