import {createBrowserRouter, RouterProvider} from "react-router-dom"; import HomePage from "./pages/home/index.page.tsx"; import NotFound from "./pages/not-found/index.page.tsx"; import Layout from "@/components/layout"; import QRCodeGenerator from "./pages/util/qr/index.page.tsx"; import EventsRouter from "./pages/events/EventsRouter.tsx"; import LegalPage from "@/pages/LegalPage.tsx"; const router = createBrowserRouter([ { path: "/", element: , children: [ { index: true, element: }, { path: "legal/:page", element: }, { path: "events/*", element: , }, { path: "util", children: [ { path: "qr", element: } ] }, { path: "*", element: } ] } ]) function Router() { return ( ) } export default Router