import React from 'react'; import { Dumbbell, History as HistoryIcon, BarChart2, MessageSquare, ClipboardList, User } from 'lucide-react'; import { TabView, Language } from '../types'; import { t } from '../services/i18n'; interface NavbarProps { currentTab: TabView; onTabChange: (tab: TabView) => void; lang: Language; } const Navbar: React.FC = ({ currentTab, onTabChange, lang }) => { const navItems = [ { id: 'TRACK' as TabView, icon: Dumbbell, label: t('tab_tracker', lang) }, { id: 'PLANS' as TabView, icon: ClipboardList, label: t('tab_plans', lang) }, { id: 'HISTORY' as TabView, icon: HistoryIcon, label: t('tab_history', lang) }, { id: 'STATS' as TabView, icon: BarChart2, label: t('tab_stats', lang) }, { id: 'AI_COACH' as TabView, icon: MessageSquare, label: t('tab_ai', lang) }, { id: 'PROFILE' as TabView, icon: User, label: t('tab_profile', lang) }, ]; return ( <> {/* MOBILE: Bottom Navigation Bar (MD3) */}
{navItems.map((item) => { const isActive = currentTab === item.id; return ( ); })}
{/* DESKTOP: Navigation Rail (MD3) */}
{navItems.map((item) => { const isActive = currentTab === item.id; return ( ); })}
); }; export default Navbar;