import { createBrowserRouter } from "react-router-dom";
import App from "./App";
import Home from "./routes/Home";
import Team from "./routes/Team";
import Apparatus from "./routes/Apparatus";
import Join from "./routes/Join";
import Contact from "./routes/Contact";

const router = createBrowserRouter([
  {
    path: "/",
    element: <App />,
    children: [
      {
        index: true,
        element: <Home />,
      },
      {
        path: "team",
        element: <Team />,
      },
      {
        path: "apparatus",
        element: <Apparatus />,
      },
      {
        path: "join",
        element: <Join />,
      },
      {
        path: "contact",
        element: <Contact />,
      },
    ],
  },
]);

export default router;
