mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-25 06:04:54 +00:00
20 lines
459 B
TypeScript
20 lines
459 B
TypeScript
import { BrowserRouter } from 'react-router-dom'
|
|
|
|
import AppRouterLayout from '@/components/app/AppRouterLayout'
|
|
import LoadingScreen from '@/components/app/LoadingScreen'
|
|
import { useAppBootstrap } from '@/hooks/use-app-bootstrap'
|
|
|
|
export default function AppRouterBootstrap() {
|
|
const { appReady } = useAppBootstrap()
|
|
|
|
if (!appReady) {
|
|
return <LoadingScreen />
|
|
}
|
|
|
|
return (
|
|
<BrowserRouter>
|
|
<AppRouterLayout />
|
|
</BrowserRouter>
|
|
)
|
|
}
|