mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 10:36:43 +00:00
22 lines
526 B
TypeScript
22 lines
526 B
TypeScript
import { PreLoader } from "./components/PreLoader";
|
|
import "./index.css";
|
|
import MainLayout from "./layouts/MainLayout";
|
|
import { AppRouter } from "./router";
|
|
import { Router } from "./router/Router";
|
|
import { useAuth0 } from "./utils/auth0-spa";
|
|
|
|
export const App = () => {
|
|
const { loading } = useAuth0();
|
|
|
|
return loading ? (
|
|
<div className="container center-align valign-wrapper">
|
|
<PreLoader />
|
|
</div>
|
|
) : (
|
|
<Router>
|
|
<MainLayout>
|
|
<AppRouter />
|
|
</MainLayout>
|
|
</Router>
|
|
);
|
|
};
|