import { createBrowserRouter } from "react-router";
import { Layout } from "./components/Layout";
import { HomePage } from "./pages/HomePage";
import { SearchPage } from "./pages/SearchPage";
import { DataDisplayPage } from "./pages/DataDisplayPage";
import { AdminPage } from "./pages/AdminPage";
import { SharedObservatoryPage } from "./pages/SharedObservatoryPage";
import { GuidePage } from "./pages/GuidePage";
import { PlanetariumGuidePage } from "./pages/PlanetariumGuidePage";
import { WebIframePage } from "./pages/WebIframePage";

export const router = createBrowserRouter([
  {
    path: "/",
    Component: Layout,
    children: [
      { index: true, Component: HomePage },
      { path: "tour", Component: SharedObservatoryPage },
      { path: "planetarium", Component: PlanetariumGuidePage },
      { path: "search", Component: SearchPage },
      { path: "web", Component: WebIframePage },
      { path: "guide", Component: GuidePage },
      { path: "data", Component: DataDisplayPage },
      { path: "admin", Component: AdminPage },
    ],
  },
]);
