import { lazy, Suspense } from "react"; import { Navigate, Route, Routes } from "react-router-dom"; import LoadingScreen from "@/components/LoadingScreen"; import MainLayout from "@/layouts/MainLayout"; import ProtectedRoute from "@/routes/ProtectedRoute"; import { hasAccessToken } from "@/utils/auth"; const LoginPage = lazy(() => import("@/pages/login")); const ForgotPasswordPage = lazy(() => import("@/pages/forgot-password")); const MeetingsPage = lazy(() => import("@/pages/meetings")); const MeetingDetailPage = lazy(() => import("@/pages/meeting-detail")); const MeetingPreviewPage = lazy(() => import("@/pages/meeting-preview")); const ProfilePage = lazy(() => import("@/pages/profile")); const PasswordPage = lazy(() => import("@/pages/password")); const ScanConfirmPage = lazy(() => import("@/pages/scan-confirm")); function HomeRedirect() { return ; } export default function App() { return ( }> } /> } /> }/> } /> } /> } /> } /> } /> } /> } /> ); }