import { Badge } from './Badge'; import { Box } from './Box'; import { Text } from './Text'; interface Tab { id: string; label: string; count?: number; countVariant?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info'; } interface BorderTabsProps { tabs: Tab[]; activeTab: string; onTabChange: (tabId: string) => void; } export function BorderTabs({ tabs, activeTab, onTabChange }: BorderTabsProps) { return ( {tabs.map((tab) => { const isActive = activeTab === tab.id; return ( onTabChange(tab.id)} pb={3} px={1} cursor="pointer" transition borderBottom={isActive} borderColor={isActive ? 'border-primary-blue' : ''} style={{ borderBottomWidth: isActive ? '2px' : '0', marginBottom: '-1px' }} > {tab.label} {tab.count !== undefined && tab.count > 0 && ( {tab.count} )} ); })} ); }