'use client';
import { usePathname, useRouter } from 'next/navigation';
import { BottomNavigation, BottomNavigationAction, Paper } from '@mui/material';
import {
Home,
Timeline,
Chat,
Insights,
Settings,
} from '@mui/icons-material';
import { useTranslation } from '@/hooks/useTranslation';
export const TabBar = () => {
const { t } = useTranslation('common');
const router = useRouter();
const pathname = usePathname();
const tabs = [
{ label: t('navigation.home'), icon: , value: '/' },
{ label: t('navigation.track'), icon: , value: '/track' },
{ label: t('navigation.aiChat'), icon: , value: '/ai-assistant' },
{ label: t('navigation.insights'), icon: , value: '/insights' },
{ label: t('navigation.settings'), icon: , value: '/settings' },
];
return (
{
router.push(newValue);
}}
showLabels
sx={{
height: 64,
'& .MuiBottomNavigationAction-root': {
minWidth: 60,
'&.Mui-selected': {
color: 'primary.main',
},
},
}}
>
{tabs.map((tab) => (
))}
);
};