//
// 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 { Video } from "./Video.tsx";
import { Version } from "./Version.tsx";
import { Login } from "./Login.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: "/version",
    element: <Version />,
  },
  {
    path: "/video",
    element: <Video />,
  },
  {
    path: "/login",
    element: <Login />,
  },
]);

export default App;
