import React from 'react'; import { Box } from './primitives/Box'; import { Stack } from './primitives/Stack'; import { Surface } from './primitives/Surface'; import { Text } from './Text'; interface Tab { id: string; label: string; icon?: React.ReactNode; } interface BorderTabsProps { tabs: Tab[]; activeTab: string; onTabChange: (tabId: string) => void; className?: string; } export function BorderTabs({ tabs, activeTab, onTabChange, className = '' }: BorderTabsProps) { return ( {tabs.map((tab) => { const isActive = activeTab === tab.id; return ( onTabChange(tab.id)} variant="ghost" px={1} py={4} position="relative" borderColor={isActive ? 'border-primary-blue' : ''} borderBottom={isActive} borderWidth={isActive ? '2px' : '0'} mb="-1px" transition="all 0.2s" group > {tab.icon && ( {tab.icon} )} {tab.label} ); })} ); }