import { lazy } from "react"; import { createBrowserRouter } from "react-router"; import { AppLayout } from "@/components/Layout/AppLayout.tsx"; const Home = lazy(() => import("./Home.tsx")); const ImportReview = lazy(() => import("./ImportReview.tsx")); const Manga = lazy(() => import("./Manga.tsx")); const Chapter = lazy(() => import("./Chapter.tsx")); const Login = lazy(() => import("./Login.tsx")); const Register = lazy(() => import("./Register.tsx")); export const Router = createBrowserRouter([ { element: , children: [ { path: "*", element:
Not Found!
, }, { index: true, element: , }, { path: "/login", element: , }, { path: "/register", element: , }, { path: "/import-review", element: , }, { path: "/manga", children: [ { path: ":mangaId", element: , }, { path: ":mangaId/chapter/:chapterId", element: , }, ], }, ], }, ]);