54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
//
|
|
// Copyright 2026 James Pace
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
//
|
|
// This Source Code Form is "Incompatible With Secondary Licenses", as
|
|
// defined by the Mozilla Public License, v. 2.0.
|
|
//
|
|
import { useState } from "react";
|
|
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
|
import { Provider as JotaiProvider } from "jotai";
|
|
import { Home } from "./Home.tsx";
|
|
import { Autonomy } from "./Autonomy.tsx";
|
|
import { Version } from "./Version.tsx";
|
|
import { WhoAmI } from "./WhoAmI.tsx";
|
|
import "./App.css";
|
|
|
|
function App() {
|
|
return (
|
|
<div>
|
|
<JotaiProvider>
|
|
<RouterProvider router={router} />
|
|
</JotaiProvider>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
const router = createBrowserRouter([
|
|
{
|
|
path: "/",
|
|
element: <Home />,
|
|
},
|
|
{
|
|
path: "/index.html",
|
|
element: <Home />,
|
|
},
|
|
{
|
|
path: "/whoami",
|
|
element: <WhoAmI />,
|
|
},
|
|
{
|
|
path: "/version",
|
|
element: <Version />,
|
|
},
|
|
{
|
|
path: "/autonomy",
|
|
element: <Autonomy />,
|
|
},
|
|
]);
|
|
|
|
export default App;
|