import { CircularProgress } from '@mui/material'
import { Suspense, lazy } from 'react'
import { createBrowserRouter } from 'react-router-dom'
import Layout from './Layout'
const Home = lazy(() => import('./views/Home'))
const Login = lazy(() => import('./views/Login'))
const Archive = lazy(() => import('./views/Archive'))
const Settings = lazy(() => import('./views/Settings'))
export const router = createBrowserRouter([
{
path: '/',
Component: () => ,
children: [
{
path: '/',
element: (
}>
)
},
{
path: '/settings',
element: (
}>
)
},
{
path: '/archive',
element: (
}>
)
},
{
path: '/login',
element: (
}>
)
},
]
},
])