'use client'; import { Box, Typography, Button, Paper, Grid } from '@mui/material'; import { AppShell } from '@/components/layouts/AppShell/AppShell'; import { ProtectedRoute } from '@/components/common/ProtectedRoute'; import { Restaurant, Hotel, BabyChangingStation, Insights, } from '@mui/icons-material'; import { motion } from 'framer-motion'; import { useAuth } from '@/lib/auth/AuthContext'; import { useRouter } from 'next/navigation'; export default function HomePage() { const { user } = useAuth(); const router = useRouter(); const quickActions = [ { icon: , label: 'Feeding', color: '#FFB6C1', path: '/track/feeding' }, { icon: , label: 'Sleep', color: '#B6D7FF', path: '/track/sleep' }, { icon: , label: 'Diaper', color: '#FFE4B5', path: '/track/diaper' }, { icon: , label: 'Insights', color: '#E6E6FA', path: '/insights' }, ]; return ( Welcome Back{user?.name ? `, ${user.name}` : ''}! 👋 Track your child's activities and get AI-powered insights {/* Quick Actions */} Quick Actions {quickActions.map((action, index) => ( router.push(action.path)} sx={{ p: 3, textAlign: 'center', cursor: 'pointer', bgcolor: action.color, color: 'white', transition: 'transform 0.2s', '&:hover': { transform: 'scale(1.05)', }, }} > {action.icon} {action.label} ))} {/* Recent Activity */} Today's Summary 8 Feedings 12h Sleep 6 Diapers {/* Next Predicted Activity */} Next Predicted Activity Nap time in 45 minutes Based on your child's sleep patterns ); }