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 TabNavigationProps { tabs: Tab[]; activeTab: string; onTabChange: (tabId: string) => void; className?: string; } export function TabNavigation({ tabs, activeTab, onTabChange, className = '' }: TabNavigationProps) { return ( {tabs.map((tab) => { const isActive = activeTab === tab.id; return ( onTabChange(tab.id)} variant={isActive ? 'default' : 'ghost'} bg={isActive ? 'bg-primary-blue' : ''} rounded="lg" px={4} py={2} transition="all 0.2s" group className={`select-none ${isActive ? 'shadow-lg shadow-primary-blue/25' : 'hover:bg-iron-gray/80'}`} > {tab.icon && ( {tab.icon} )} {tab.label} ); })} ); }