import { CircularProgress } from '@mui/material'
import { Suspense, lazy } from 'react'
import { createHashRouter } from 'react-router-dom'
import Layout from './Layout'
import Terminal from './views/Terminal'
const Home = lazy(() => import('./views/Home'))
const Login = lazy(() => import('./views/Login'))
const Archive = lazy(() => import('./views/Archive'))
const Settings = lazy(() => import('./views/Settings'))
const LiveStream = lazy(() => import('./views/Livestream'))
const Filebrowser = lazy(() => import('./views/Filebrowser'))
const Subscriptions = lazy(() => import('./views/Subscriptions'))
const ErrorBoundary = lazy(() => import('./components/ErrorBoundary'))
export const router = createHashRouter([
{
path: '/',
Component: () => ,
children: [
{
path: '/',
element: (
}>
),
errorElement: (
}>
)
},
{
path: '/settings',
element: (
}>
)
},
{
path: '/log',
element: (
}>
)
},
{
path: '/archive',
element: (
}>
),
errorElement: (
}>
)
},
{
path: '/filebrowser',
element: (
}>
),
errorElement: (
}>
)
},
{
path: '/subscriptions',
element: (
}>
),
errorElement: (
}>
)
},
{
path: '/login',
element: (
}>
)
},
{
path: '/error',
element: (
}>
)
},
{
path: '/monitor',
element: (
}>
)
},
]
},
])