import ReactDOM from "react-dom/client";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import Header from "./components/header/Header/Header";
import Masterplan from "./pages/Masterplan";
import Company from "./pages/Company";
import "./index.css";

const router = createBrowserRouter([
  {
    path: "/",
    element: <Header />,
    children: [
      {
        path: "/",
        element: <Masterplan />,
      },
      {
        path: "/masterplan",
        element: <Masterplan />,
      },
      {
        path: "/company",
        element: <Company />,
      },
    ],
  },
]);

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