import React, { Suspense } from 'react'
import LoadingPage from './components/loading-page'
import { Outlet } from 'react-router-dom'

function RouteOutlet() {
    return <Suspense fallback={<LoadingPage />}>
        <Outlet />
    </Suspense>
}

export default React.memo(RouteOutlet)