import { BrowserRouter as Router, Navigate, Route, Routes } from 'react-router-dom' import { lazy, memo, Suspense } from 'react' import { RootPathContext } from '@asb/context' import SuspenseFallback from '@components/SuspenseFallback' import { NoAccessComponent } from '@utils' import '@styles/pages/App.less' const UserOutlet = lazy(() => import('@components/outlets/UserOutlet')) const DepositsOutlet = lazy(() => import('@components/outlets/DepositsOutlet')) const LayoutPortal = lazy(() => import('@components/LayoutPortal')) const Login = lazy(() => import('@pages/public/Login')) const Register = lazy(() => import('@pages/public/Register')) const FileDownload = lazy(() => import('@pages/FileDownload')) const AdminPanel = lazy(() => import('@pages/AdminPanel')) const Deposit = lazy(() => import('@pages/Deposit')) const Cluster = lazy(() => import('@pages/Cluster')) const Well = lazy(() => import('@pages/Well')) export const App = memo(() => ( }> } /> } /> {/* Public pages */} } /> } /> {/* User pages */} }> } /> }> }> {/* Admin pages */} } /> {/* Client pages */} } /> } /> } /> )) export default App