import React from 'react'; import { Box } from './Box'; import { Text } from './Text'; import { Icon } from './Icon'; interface Tab { id: string; label: string; icon?: any; } 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)} display="flex" alignItems="center" gap={2} px={5} py={2.5} rounded="lg" cursor="pointer" transition bg={isActive ? 'bg-primary-blue' : ''} className={`select-none ${isActive ? 'shadow-lg shadow-primary-blue/25' : 'hover:bg-iron-gray/80'}`} > {tab.icon && } {tab.label} ); })} ); }