import { lazy, Suspense } from 'react' import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom' import { AuthProvider } from './contexts/AuthContext' import { ProtectedRoute } from './components/ProtectedRoute' import { useSwipeNav } from './hooks/useSwipeNav' import './App.css' function SwipeNavHandler() { useSwipeNav() return null } const HomePage = lazy(() => import('./pages/HomePage')) const HistoryPage = lazy(() => import('./pages/HistoryPage')) const SettingsPage = lazy(() => import('./pages/SettingsPage')) const LoginPage = lazy(() => import('./pages/LoginPage')) const PrivacyPage = lazy(() => import('./pages/PrivacyPage')) const AboutPage = lazy(() => import('./pages/AboutPage')) const TermsOfServicePage = lazy(() => import('./pages/TermsOfServicePage')) function App() { return ( } /> } /> } /> } /> } /> } /> } /> } /> ) } export default App