import { ClassValue } from 'clsx'
import { cn } from '@/lib/utils'
setActiveTab: React.Dispatch<React.SetStateAction<string>>
export default function Tabs({
gridTemplateColumns: Array(tabsArray.length)
className={cn('grid w-full rounded-base text-sm sm:text-base', className)}
{tabsArray.map((tab, index) => {
const bg = activeTab === tab ? 'bg-mainAccent' : 'bg-main'
onClick={() => setActiveTab(tab)}
className={`cursor-pointer text-text border-2 border-border dark:border-darkBorder py-2 text-center font-bold transition-colors first:rounded-ss-base last:rounded-se-base ${bg}`}