import ReactDOM from "react-dom/client";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import Wrapper from "./components/Wrapper.tsx";
import MainPage from "./pages/MainPage/MainPage.tsx";
import TechnologyPage from "./pages/TechnologyPage/TechnologyPage.tsx";
import DirectionPage from "./pages/DirectionsPage/DirectionsPage.tsx";
import "./index.css";

const router = createBrowserRouter([
  {
    path: "/",
    element: <Wrapper />,
    children: [
      {
        path: "/",
        element: <MainPage />,
      },
      {
        path: "/technology",
        element: <TechnologyPage />,
      },
      {
        path: "/directions",
        element: <DirectionPage />,
      },
    ],
  },
]);

ReactDOM.createRoot(document.getElementById("root")!).render(
  <RouterProvider router={router} />
);
