import { Switch, Route } from "wouter"; import React, { Suspense, lazy } from "react"; import { Provider } from "react-redux"; import { store } from "./redux/store"; import { queryClient } from "./lib/queryClient"; import { QueryClientProvider } from "@tanstack/react-query"; import { Toaster } from "./components/ui/toaster"; import { TooltipProvider } from "./components/ui/tooltip"; import { ProtectedRoute } from "./lib/protected-route"; import { AuthProvider } from "./hooks/use-auth"; import Dashboard from "./pages/dashboard"; import LoadingScreen from "./components/ui/LoadingScreen"; const AuthPage = lazy(() => import("./pages/auth-page")); const AppointmentsPage = lazy(() => import("./pages/appointments-page")); const PatientsPage = lazy(() => import("./pages/patients-page")); const SettingsPage = lazy(() => import("./pages/settings-page")); const ClaimsPage = lazy(() => import("./pages/claims-page")); const PaymentsPage = lazy(() => import("./pages/payments-page")); const InsuranceEligibilityPage = lazy( () => import("./pages/insurance-eligibility-page") ); const DocumentPage = lazy(() => import("./pages/documents-page")); const DatabaseManagementPage = lazy( () => import("./pages/database-management-page") ); const NotFound = lazy(() => import("./pages/not-found")); function Router() { return ( } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> } /> ); } function App() { return ( }> ); } export default App;