'use client'; import { Box, Typography, Grid, Card, CardContent, CardActionArea } from '@mui/material'; import { Restaurant, Hotel, BabyChangingStation, ChildCare } from '@mui/icons-material'; import { useRouter } from 'next/navigation'; import { AppShell } from '@/components/layouts/AppShell/AppShell'; import { ProtectedRoute } from '@/components/common/ProtectedRoute'; export default function TrackPage() { const router = useRouter(); const trackingOptions = [ { title: 'Feeding', icon: , path: '/track/feeding', color: '#FFE4E1', }, { title: 'Sleep', icon: , path: '/track/sleep', color: '#E1F5FF', }, { title: 'Diaper', icon: , path: '/track/diaper', color: '#FFF4E1', }, { title: 'Activity', icon: , path: '/track/activity', color: '#E8F5E9', }, ]; return ( Track Activity Select an activity to track {trackingOptions.map((option) => ( router.push(option.path)} sx={{ height: '100%', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', py: 4, }} > {option.icon} {option.title} ))} ); }