import React from 'react'; import { useLocation, useNavigate, Link } from 'react-router-dom'; import { ArrowLeft, Radio, Package, Bike, BarChart3, Home, MapPin, Truck } from 'lucide-react'; import { useAuth } from '@/lib/AuthContext'; export default function PageNotFound() { const location = useLocation(); const navigate = useNavigate(); const { isAuthenticated } = useAuth(); const path = location.pathname; const quickLinks = [ { title: 'Live Dispatch', desc: 'Real-time fleet tracking & active runs', icon: Radio, path: '/doormile/dispatch', color: 'text-rose-600 bg-rose-50 border-rose-200/70 group-hover:bg-rose-100/70' }, { title: 'Orders Management', desc: 'Pending, assigned, and bulk bookings', icon: Package, path: '/doormile/orders', color: 'text-blue-600 bg-blue-50 border-blue-200/70 group-hover:bg-blue-100/70' }, { title: 'Live Deliveries', desc: 'Active consignments & transit logs', icon: Truck, path: '/doormile/deliveries', color: 'text-amber-600 bg-amber-50 border-amber-200/70 group-hover:bg-amber-100/70' }, { title: 'Milers Fleet', desc: 'Rider profiles, roster & status', icon: Bike, path: '/doormile/milers', color: 'text-emerald-600 bg-emerald-50 border-emerald-200/70 group-hover:bg-emerald-100/70' }, { title: 'Reports & Analytics', desc: 'Daily summaries & financial KPIs', icon: BarChart3, path: '/doormile/reports/orderssummary', color: 'text-purple-600 bg-purple-50 border-purple-200/70 group-hover:bg-purple-100/70' } ]; return (
{/* Background subtle mesh & grid */}
{/* Top Brand Pill */}
Doormile Operations Console
{/* Clean 404 Visual Graphic without any overlay icon */}
404
{/* Heading & Context */}

Page not found

The requested destination is not registered in the console or has been moved to a new route.

{/* Target Path Badge */}
{path}
{/* Primary & Secondary Action CTAs */}
{/* Quick Operations Links */} {isAuthenticated && (
Quick Navigation Operational shortcuts
{quickLinks.map((item) => { const IconComponent = item.icon; return (
{item.title}
{item.desc}
); })}
)}
); }