import { lazy, Suspense } from 'react'; import { Routes, Route } from 'react-router-dom'; import { LoadingSpinner } from '@/components/common/LoadingSpinner'; // Lazy load all page components for code splitting const Login = lazy(() => import('@/pages/Login')); const Dashboard = lazy(() => import('@/pages/Dashboard')); const DealerProfile = lazy(() => import('@/pages/DealerProfile')); const ScoreCard = lazy(() => import('@/pages/ScoreCard')); const NotFound = lazy(() => import('@/components/common/NotFound')); // Suspense fallback component const PageLoader = () => (