'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';
export const TabBar = () => {
const router = useRouter();
const pathname = usePathname();
const tabs = [
{ label: 'Home', icon: , value: '/' },
{ label: 'Track', icon: , value: '/track' },
{ label: 'AI Chat', icon: , value: '/ai-assistant' },
{ label: 'Insights', icon: , value: '/insights' },
{ label: 'Settings', icon: , value: '/settings' },
];
return (
{
router.push(newValue);
}}
showLabels
sx={{
height: 64,
'& .MuiBottomNavigationAction-root': {
minWidth: 60,
'&.Mui-selected': {
color: 'primary.main',
},
},
}}
>
{tabs.map((tab) => (
))}
);
};