import { lazy, Suspense } from 'react' import { Routes, Route, Navigate } from 'react-router' import { Loading } from 'tdesign-react' import { AppLayout } from '@/components/AppLayout' const ProvidersPage = lazy(() => import('@/pages/Providers')) const StatsPage = lazy(() => import('@/pages/Stats')) const SettingsPage = lazy(() => import('@/pages/Settings')) const AboutPage = lazy(() => import('@/pages/About')) const NotFound = lazy(() => import('@/pages/NotFound')) export function AppRoutes() { return ( }> }> } /> } /> } /> } /> } /> } /> ) }