import React from "react"; import ReactDOM from "react-dom/client"; import { createBrowserRouter, RouterProvider } from "react-router-dom"; import { AuthProvider } from "./context/auth_context"; import { Root } from "./root"; import { Demo } from "./routes/demo"; import { Home } from "./routes/home"; import { Keys } from "./routes/keys"; import { Bots } from "./routes/bots"; import { ManPages } from "./routes/man_pages"; import { Password } from "./routes/password"; import { AuthSuccessful } from "./routes/auth_successful"; import "./index.css"; const router = createBrowserRouter([ { path: "/", element: }, { path: "/", element: , errorElement: <> , children: [ { path: "home", element: , }, { path: "password", element: , }, { path: "keys", element: , }, { path: "auth-successful", element: , }, { path: "bots", element: , }, { path: "man-pages", element: , }, ], }, ]); const root = ReactDOM.createRoot(document.getElementById("root")); root.render( );