import { lazy } from "react";
import { lazyRetry } from "../utils/lazyRetry";
import {
  ROUTE_CITY_JIHAD_DISPENSER_DETAILS_VIEW,
  ROUTE_CITY_JIHAD_DISPENSERS,
  ROUTE_CITY_JIHAD_DISPENSERS_INVENTORY,
  ROUTE_CITY_JIHAD_DISPENSERS_KILLHOUSES,
  ROUTE_CITY_JIHAD_DISPENSERS_MANAGEMENT,
  ROUTE_CITY_JIHAD_DISPENSERS_SELL_CARCASS,
  ROUTE_CITY_JIHAD_DISPENSERS_STEWARDS,
  ROUTE_CITY_JIHAD_HATCHINGS_DETAILS,
  ROUTE_CITY_JIHAD_ROUTE_ALLOCATIONS,
  ROUTE_CITY_JIHAD_ROUTE_FILES_STATE,
  // ROUTE_CITY_JIHAD_ROUTE_GUILDS,
  // ROUTE_CITY_JIHAD_ROUTE_GUILDS_SETTINGS,
  // ROUTE_CITY_JIHAD_ROUTE_MANAGE_GUILDS,
  // ROUTE_CITY_JIHAD_ROUTE_STEWARDS,
  ROUTE_CITY_JIHAD_SALE_DESTRIBUTION_DETAILS,
  ROUTE_CITY_JIHAD_STATICS,
  ROUTE_CITY_JIHADـHATCHINGS,
} from "./routes";

const Statics = lazy(() => lazyRetry(() => import("../pages/AdminStatics")));
const FilesState = lazy(() => lazyRetry(() => import("../pages/FilesState")));
const VetFarmAllocations = lazy(() =>
  lazyRetry(() => import("../pages/VetFarmAllocations"))
);
const Dispensers = lazy(() =>
  lazyRetry(() => import("../pages/SlaughterHouseDispenserDashboard"))
);

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

export const cityJihadRouting = [
  {
    path: [ROUTE_CITY_JIHAD_STATICS],
    Page: Statics,
    exact: false,
    props: {},
  },
  {
    path: [ROUTE_CITY_JIHAD_ROUTE_FILES_STATE],
    Page: FilesState,
    exact: false,
    props: {},
  },
  {
    path: [ROUTE_CITY_JIHAD_ROUTE_ALLOCATIONS],
    Page: VetFarmAllocations,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTE_CITY_JIHAD_DISPENSERS,
      ROUTE_CITY_JIHAD_DISPENSERS_MANAGEMENT,
      ROUTE_CITY_JIHAD_DISPENSER_DETAILS_VIEW,
      ROUTE_CITY_JIHAD_DISPENSER_DETAILS_VIEW,
      ROUTE_CITY_JIHAD_DISPENSERS_STEWARDS,
      ROUTE_CITY_JIHAD_DISPENSERS_KILLHOUSES,
      ROUTE_CITY_JIHAD_DISPENSER_DETAILS_VIEW,
      ROUTE_CITY_JIHAD_DISPENSERS_SELL_CARCASS,
      ROUTE_CITY_JIHAD_DISPENSERS_INVENTORY,
      ROUTE_CITY_JIHAD_SALE_DESTRIBUTION_DETAILS,
    ],
    Page: Dispensers,
    exact: false,
    props: {},
  },
  {
    path: [ROUTE_CITY_JIHADـHATCHINGS, ROUTE_CITY_JIHAD_HATCHINGS_DETAILS],
    Page: AllHatchings,

    exact: false,
    props: {},
  },
];
