import { CalendarDays, User, MapPin, ShoppingBag, Heart } from 'lucide-react' import { useAuth } from '../context/AuthContext' import { SectionCard } from '@meshkee/dashboard-ui' import styles from '../components/PageContent.module.css' const sections = [ { icon: User, title: 'My Profile', description: 'View and update your personal information and contact details.', linkText: 'View profile', href: '/profile', }, { icon: MapPin, title: 'My Addresses', description: 'Manage your shipping addresses for checkout and deliveries.', linkText: 'View addresses', href: '/addresses', }, { icon: ShoppingBag, title: 'My Orders', description: 'Track your orders, view order history and order details.', linkText: 'View orders', href: '/orders', }, { icon: Heart, title: 'My Favorites', description: 'Browse and manage your saved favorite products.', linkText: 'View favorites', href: '/favorites', }, ] function getFormattedDate() { return new Intl.DateTimeFormat('en-US', { month: 'long', day: 'numeric', year: 'numeric', weekday: 'long', }).format(new Date()) } export function HomePage() { const { user } = useAuth() const firstName = user?.firstName || 'there' return (

Welcome back, {firstName}!

Manage your profile, addresses, orders, and favorites in one place.

{getFormattedDate()}
{sections.map((section) => ( ))}
) }