import { lazy, Suspense } from 'react' import { Routes, Route, Navigate } from 'react-router-dom' import { Layout } from './components/layout/Layout' import { useAuth } from './contexts/AuthContext' const Dashboard = lazy(() => import('./pages/Dashboard').then(m => ({ default: m.Dashboard }))) const Models = lazy(() => import('./pages/Models').then(m => ({ default: m.Models }))) const Datasets = lazy(() => import('./pages/Datasets').then(m => ({ default: m.Datasets }))) const Training = lazy(() => import('./pages/Training').then(m => ({ default: m.Training }))) const Evaluation = lazy(() => import('./pages/Evaluation').then(m => ({ default: m.Evaluation }))) const Deployment = lazy(() => import('./pages/Deployment').then(m => ({ default: m.Deployment }))) const Inference = lazy(() => import('./pages/Inference').then(m => ({ default: m.Inference }))) const Login = lazy(() => import('./pages/AuthLogin').then(m => ({ default: m.Login }))) const AuthCallback = lazy(() => import('./pages/AuthCallback').then(m => ({ default: m.AuthCallback }))) function PageFallback() { return