import { lazy } from "react";
import { lazyRetry } from "../utils/lazyRetry";
import {
  ROUTE_OBSERVATORY_STATICS,
  ROUTE_OBSERVATORY_VISOR_STATICS,
  ROUTE_OBSERVATORY_VISOR_STATICS_CHARTS,
  ROUTE_OBSERVATORY_VISOR_STATICS_PREDICTION,
  ROUTE_OBSERVATORY_VISOR_STATICS_PREDICTION_VIEW,
} from "./routes";

const Statics = lazy(() => lazyRetry(() => import("../pages/AdminStatics")));

const VisorStatics = lazy(() =>
  lazyRetry(() => import("../pages/VisorStatics"))
);

export const observatoryRouting = [
  {
    path: [ROUTE_OBSERVATORY_STATICS],
    Page: Statics,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTE_OBSERVATORY_VISOR_STATICS,
      ROUTE_OBSERVATORY_VISOR_STATICS_PREDICTION,
      ROUTE_OBSERVATORY_VISOR_STATICS_PREDICTION_VIEW,
      ROUTE_OBSERVATORY_VISOR_STATICS_CHARTS,
    ],
    Page: VisorStatics,
    exact: false,
    props: {},
  },
];
