import { lazy } from "react";
import { lazyRetry } from "../utils/lazyRetry";
import * as ROUTES from "../routes/routes";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const DispensersStock = lazy(() =>
  lazyRetry(() =>
    import(
      "../features/province/components/province-dispensers-stock/ProvinceDispensersStock"
    )
  )
);

const ProvinceDispensersStockSlug = lazy(() =>
  lazyRetry(() =>
    import(
      "../features/province/components/province-dispensers-stock-slug/ProvinceDispensersStockSlug"
    )
  )
);

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

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

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

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

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

const consolidatedRouting = [
  {
    path: [ROUTES.ROUTE_ADMINX_BASE_NEW_HOME],
    Page: AccessDashboardV2,
    exact: false,
    props: {},
  },
  {
    path: [ROUTES.ROUTE_ADMINX_PROVINCE_SWITCH],
    Page: AdminXDashboard,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_STATICS,
      ROUTES.ROUTE_PROVINCE_STATICS,
      ROUTES.ROUTE_SUPER_ADMIN_STATICS,
    ],
    Page: Statics,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_TICKET,
      ROUTES.ROUTE_ADMINX_VIEW_TICKET,
      ROUTES.ROUTE_PROVINCE_TICKET,
      ROUTES.ROUTE_PROVINCE_VIEW_TICKET,
      ROUTES.ROUTE_SUPER_ADMIN_TICKET,
      ROUTES.ROUTE_SUPER_ADMIN_VIEW_TICKET,
    ],
    Page: Tickets,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_SEND_MESSAGE,
      ROUTES.ROUTE_PROVINCE_SEND_MESSAGE,
      ROUTES.ROUTE_SUPER_ADMIN_SEND_MESSAGE,
    ],
    Page: Message,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_FILE_ROUTE,
      ROUTES.ROUTE_PROVINCE_FILE_ROUTE,
      ROUTES.ROUTE_SUPER_ADMIN_FILE_ROUTE,
    ],
    Page: NewFile,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_USERS,
      ROUTES.ROUTE_PROVINCE_USERS,
      ROUTES.ROUTE_SUPER_ADMIN_USERS,
    ],
    Page: UserManagement,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTES.ROUTE_ADMINX_REQUESTS,
      ROUTES.ROUTE_ADMINX_CITY_NEW_REQUESTS,
      ROUTES.ROUTE_ADMINX_NEW_REQUESTS,
      ROUTES.ROUTE_ADMINX_REJECTED_REQUESTS,
      ROUTES.ROUTE_ADMINX_ARCHIVED_REQUESTS,
      ROUTES.ROUTE_ADMINX_ISSUANCE_OF_LETTER,
      ROUTES.ROUTE_ADMINX_AWAITING_PAYMENT_REQUESTS,
      ROUTES.ROUTE_ADMINX_AWAITING_INSPECTION_REQUESTS,
      ROUTES.ROUTE_ADMINX_ACTIVE_REQUESTS,
      ROUTES.ROUTE_ADMINX_STATEMENTـOFـNEED_REQUESTS,
      ROUTES.ROUTE_ADMINX_ALLOCATION_REQUESTS,
      ROUTES.ROUTE_ADMINX_FREE_SALES_REQUESTS,
      ROUTES.ROUTE_ADMINX_AUTO_ALLOCATION_REQUESTS,
      ROUTES.ROUTE_ADMINX_ALLOCATED_REQUESTS,
      ROUTES.ROUTE_ADMINX_CHAINS,
      ROUTES.ROUTE_ADMINX_EXPORT,
      ROUTES.ROUT_ADMINX_FREE_BUY,

      ROUTES.ROUTE_PROVINCE_REQUESTS,
      ROUTES.ROUTE_PROVINCE_CITY_NEW_REQUESTS,
      ROUTES.ROUTE_PROVINCE_NEW_REQUESTS,
      ROUTES.ROUTE_PROVINCE_REJECTED_REQUESTS,
      ROUTES.ROUTE_PROVINCE_ARCHIVED_REQUESTS,
      ROUTES.ROUTE_PROVINCE_ISSUANCE_OF_LETTER,
      ROUTES.ROUTE_PROVINCE_AWAITING_PAYMENT_REQUESTS,
      ROUTES.ROUTE_PROVINCE_AWAITING_INSPECTION_REQUESTS,
      ROUTES.ROUTE_PROVINCE_ACTIVE_REQUESTS,
      ROUTES.ROUTE_PROVINCE_STATEMENTـOFـNEED_REQUESTS,
      ROUTES.ROUTE_PROVINCE_ALLOCATION_REQUESTS,
      ROUTES.ROUTE_PROVINCE_FREE_SALES_REQUESTS,
      ROUTES.ROUTE_PROVINCE_AUTO_ALLOCATION_REQUESTS,
      ROUTES.ROUTE_PROVINCE_ALLOCATED_REQUESTS,
      ROUTES.ROUTE_PROVINCEـFREE_BUY,
      ROUTES.ROUTE_PROVINCE_CHAINS,
      ROUTES.ROUTE_PROVINCEـEXPORT,

      ROUTES.ROUTE_SUPER_ADMIN_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_CITY_NEW_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_NEW_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_REJECTED_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_ARCHIVED_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_ISSUANCE_OF_LETTER,
      ROUTES.ROUTE_SUPER_ADMIN_AWAITING_PAYMENT_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_AWAITING_INSPECTION_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_ACTIVE_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_STATEMENTـOFـNEED_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_ALLOCATION_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_FREE_SALES_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_AUTO_ALLOCATION_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_ALLOCATED_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_CHAINS,
      ROUTES.ROUTE_SUPER_ADMIN_EXPORT,
      ROUTES.ROUT_SUPER_ADMIN_FREE_BUY,
    ],
    Page: ProvinceRequests,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_BROADCAST_MANAGEMENT,
      ROUTES.ROUTE_PROVINCEـBROADCAST_MANAGEMENT,
      ROUTES.ROUTE_SUPER_ADMIN_BROADCAST_MANAGEMENT,
    ],
    Page: BroadcastManagement,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_REPORT,
      ROUTES.ROUTE_PROVINCE_REPORT,
      ROUTES.ROUTE_SUPER_ADMIN_REPORT,
    ],
    Page: Reports,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_PRODUCTS,
      ROUTES.ROUTE_PROVINCE_PRODUCTS,
      ROUTES.ROUTE_SUPER_ADMIN_PRODUCTS,
    ],
    Page: ProvinceProducts,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_TRANSACTIONS,
      ROUTES.ROUTE_ADMINX_TRANSACTIONS_VIEW,
      ROUTES.ROUTE_PROVINCE_TRANSACTIONS,
      ROUTES.ROUTE_PROVINCE_TRANSACTIONS_VIEW,
      ROUTES.ROUTE_SUPER_ADMIN_TRANSACTIONS,
      ROUTES.ROUTE_SUPER_ADMIN_TRANSACTIONS_VIEW,
    ],
    Page: TransactionsPage,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_GUILD_TRANSACTIONS,
      ROUTES.ROUTE_PROVINCE_GUILD_TRANSACTIONS,
      ROUTES.ROUTE_SUPER_ADMIN_GUILD_TRANSACTIONS,
    ],
    Page: GuildTransactions,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_PAYING_FEES_REQUESTS,
      ROUTES.ROUTE_ADMINX_PAYING_FEES_REQUESTS_VIEW,
      ROUTES.ROUTE_PROVINCE_PAYING_FEES_REQUESTS,
      ROUTES.ROUTE_PROVINCE_PAYING_FEES_REQUESTS_VIEW,
      ROUTES.ROUTE_SUPER_ADMIN_PAYING_FEES_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_PAYING_FEES_REQUESTS_VIEW,
    ],
    Page: ProvinceFees,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_AGENT_SHARE,
      ROUTES.ROUTE_ADMINX_ROUTE_AGENT_SHARE_ID,
      ROUTES.ROUTE_ADMINX_ROUTE_STEWARD_SHARE,
      ROUTES.ROUTE_PROVINCE_ROUTE_AGENT_SHARE,
      ROUTES.ROUTE_PROVINCE_ROUTE_AGENT_SHARE_ID,
      ROUTES.ROUTE_PROVINCE_ROUTE_STEWARD_SHARE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_AGENT_SHARE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_AGENT_SHARE_ID,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_STEWARD_SHARE,
    ],
    Page: AgentShare,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_GUILDS,
      ROUTES.ROUTE_ADMINX_ROUTE_GUILDS,
      ROUTES.ROUTE_ADMINX_ROUTE_IN_PROVINCE_STEWARDS,
      ROUTES.ROUTE_ADMINX_ROUTE_GUILDS_SETTINGS,
      ROUTES.ROUTE_ADMINX_ROUTE_IN_PROVINCE_GUILDS_REQUESTS,
      ROUTES.ROUTE_ADMINX_ROUTE_IN_PROVINCE_GUILDS_DISTRIBUTIONS,
      ROUTES.ROUTE_PROVINCE_ROUTE_MANAGE_GUILDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_GUILDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_IN_PROVINCE_STEWARDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_GUILDS_SETTINGS,
      ROUTES.ROUTE_PROVINCE_ROUTE_IN_PROVINCE_GUILDS_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_GUILDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_GUILDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_IN_PROVINCE_STEWARDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_GUILDS_SETTINGS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_IN_PROVINCE_GUILDS_REQUESTS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_IN_PROVINCE_GUILDS_DISTRIBUTIONS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_OUT_PROVINCE_GUILDS,
      ROUTES.ROUTE_ADMINX_ROUTE_OUT_PROVINCE_GUILDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_OUT_PROVINCE_GUILDS,
      ROUTES.ROUTE_ADMINX_ROUTE_IN_PROVINCE_GUILDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_IN_PROVINCE_GUILDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_IN_PROVINCE_GUILDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_IN_PROVINCE_TRUE_GUILDS,
      ROUTES.ROUTE_ADMINX_ROUTE_IN_PROVINCE_TRUE_GUILDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_IN_PROVINCE_TRUE_GUILDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_OUT_PROVINCE_TRUE_GUILDS,
      ROUTES.ROUTE_ADMINX_ROUTE_OUT_PROVINCE_TRUE_GUILDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_OUT_PROVINCE_TRUE_GUILDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_IN_PROVINCE_LEGAL_GUILDS,
      ROUTES.ROUTE_ADMINX_ROUTE_IN_PROVINCE_LEGAL_GUILDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_IN_PROVINCE_LEGAL_GUILDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_OUT_PROVINCE_LEGAL_GUILDS,
      ROUTES.ROUTE_ADMINX_ROUTE_OUT_PROVINCE_LEGAL_GUILDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_OUT_PROVINCE_LEGAL_GUILDS,
    ],
    Page: Guilds,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_SLAUGHTERS,
      ROUTES.ROUTE_SLAUGHTER_ACTIVE_REQUESTS,
      ROUTES.ROUTE_PROVINCE_SLAUGHTERS,
      ROUTES.ROUTE_SUPER_ADMIN_SLAUGHTERS,
      ROUTES.ROUTE_ADMINX_SLAUGHTERS_MONITORING_BUYERS,
      ROUTES.ROUTE_PROVINCE_SLAUGHTERS_MONITORING_BUYERS,
      ROUTES.ROUTE_SUPER_ADMIN_SLAUGHTERS_MONITORING_BUYERS,
    ],
    Page: Slaughters,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_POULTRIES,
      ROUTES.ROUTE_PROVINCE_POULTRIES,
      ROUTES.ROUTE_SUPER_ADMIN_POULTRIES,
    ],
    Page: Poultries,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_USERS,
      ROUTES.ROUTE_PROVINCE_USERS,
      ROUTES.ROUTE_SUPER_ADMIN_USERS,
    ],
    Page: Users,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_CARS,
      ROUTES.ROUTE_PROVINCE_CARS,
      ROUTES.ROUTE_SUPER_ADMIN_CARS,
    ],
    Page: CarManagement,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ASSIGN_VET_FARM,
      ROUTES.ROUTE_PROVINCE_ASSIGN_VET_FARM,
      ROUTES.ROUTE_SUPER_ADMIN_ASSIGN_VET_FARM,
    ],
    Page: ManageFarm,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_ALLOCATIONS,
      ROUTES.ROUTE_PROVINCE_ROUTE_ALLOCATIONS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_ALLOCATIONS,
    ],
    Page: VetFarmAllocations,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_PROCESS,
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_PROCESS_POLICY_COUNCIL,
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_PROCESS_SLAUGHTER,
      ROUTES.ROUTE_ADMINX_ROUTE_SLAUGHTER_TRADE_PANEL,
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_DISTRIBUTIONS,
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_PROCESS_KILLPLACE,
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_PROCESS_BUY_REQ,
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_PROCESS_DOCUMENT_STATES,
      ROUTES.ROUTE_ADMINX_ROUTE_ACCOUNTS,
      ROUTES.ROUTE_ADMINX_ROUTE_TICKET_PERMISSION,
      ROUTES.ROUTE_ADMINX_ROUTE_CRONJOB,
      ROUTES.ROUTE_ADMINX_ROUTE_Sms_Submission_Management,
      ROUTES.ROUTE_ADMINX_ROUTE_WEIGHT_RANGE,
      ROUTES.ROUTE_ADMINX_ROUTE_WEIGHT_CATEGORY,
      ROUTES.ROUTE_ADMINX_ROUTE_PENALTY,
      ROUTES.ROUTE_ADMINX_ROUTE_RESTRICTION_OF_CARCASS_DISTRIBUTION,
      ROUTES.ROUTE_PROVINCE_ROUTE_MANAGE_PROCESS,
      ROUTES.ROUTE_PROVINCE_ROUTE_MANAGE_PROCESS_POLICY_COUNCIL,
      ROUTES.ROUTE_PROVINCE_ROUTE_MANAGE_PROCESS_SLAUGHTER,
      ROUTES.ROUTE_PROVINCE_ROUTE_MANAGE_PROCESS_KILLPLACE,
      ROUTES.ROUTE_PROVINCE_ROUTE_MANAGE_PROCESS_BUY_REQ,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_PROCESS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_PROCESS_POLICY_COUNCIL,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_PROCESS_SLAUGHTER,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_SLAUGHTER_TRADE_PANEL,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_DISTRIBUTIONS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_PROCESS_KILLPLACE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_PROCESS_BUY_REQ,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_PROCESS_DOCUMENT_STATES,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_TICKET_PERMISSION,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_WEIGHT_CATEGORY,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_WEIGHT_RANGE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_PENALTY,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_RESTRICTION_OF_CARCASS_DISTRIBUTION,
    ],
    Page: ManageProcess,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_POLICY_COUNCIL_POULTRY_CHOOSE_SLAUGHTER,
      ROUTES.ROUTE_ADMINX_ROUTE_POLICY_COUNCIL_FREE_SALE,
      ROUTES.ROUTE_ADMINX_ROUTE_POLICY_COUNCIL_DIRECT_BUY,
      ROUTES.ROUTE_ADMINX_ROUTE_POLICY_COUNCIL_KILLHOUSE_GUILDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_POLICY_COUNCIL_POULTRY_CHOOSE_SLAUGHTER,
      ROUTES.ROUTE_PROVINCE_ROUTE_POLICY_COUNCIL_FREE_SALE,
      ROUTES.ROUTE_PROVINCE_ROUTE_POLICY_COUNCIL_DIRECT_BUY,
      ROUTES.ROUTE_PROVINCE_ROUTE_POLICY_COUNCIL_KILLHOUSE_GUILDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_POLICY_COUNCIL_POULTRY_CHOOSE_SLAUGHTER,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_POLICY_COUNCIL_FREE_SALE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_POLICY_COUNCIL_DIRECT_BUY,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_POLICY_COUNCIL_KILLHOUSE_GUILDS,
    ],
    Page: PolicyCouncil,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_FILES_STATE,
      ROUTES.ROUTE_PROVINCE_ROUTE_FILES_STATE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_FILES_STATE,
    ],
    Page: FilesState,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_BARS,
      ROUTES.ROUTE_PROVINCE_BARS,
      ROUTES.ROUTE_SUPER_ADMIN_BARS,
    ],
    Page: BarInfos,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_USER_FILE_ROUTE,
      ROUTES.ROUTE_PROVINCE_USER_FILE_ROUTE,
      ROUTES.ROUTE_SUPER_ADMIN_USER_FILE_ROUTE,
    ],
    Page: UserFile,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_MANAGE_USERS,
      ROUTES.ROUTE_PROVINCE_MANAGE_USERS,
      ROUTES.ROUTE_SUPER_ADMIN_MANAGE_USERS,
    ],
    Page: UserManagement,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_PRICING3,
      ROUTES.ROUTE_PROVINCE_PRICING3,
      ROUTES.ROUTE_SUPER_ADMIN_PRICING3,
    ],
    Page: ProvinceManagePricing,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_VISOR_STATICS,
      ROUTES.ROUTE_ADMINX_VISOR_STATICS_CHARTS,
      ROUTES.ROUTE_ADMINX_VISOR_STATICS_PREDICTION,
      ROUTES.ROUTE_ADMINX_VISOR_STATICS_PREDICTION_VIEW,
      ROUTES.ROUTE_ADMINX_NATIONAL_STATICS,
      ROUTES.ROUTE_PROVINCEـVISOR_STATICS,
      ROUTES.ROUTE_PROVINCEـVISOR_STATICS_CHARTS,
      ROUTES.ROUTE_PROVINCEـVISOR_STATICS_PREDICTION,
      ROUTES.ROUTE_PROVINCEـVISOR_STATICS_PREDICTION_VIEW,
      ROUTES.ROUTE_SUPER_ADMIN_VISOR_STATICS,
      ROUTES.ROUTE_SUPER_ADMIN_VISOR_STATICS_CHARTS,
      ROUTES.ROUTE_SUPER_ADMIN_VISOR_STATICS_PREDICTION,
      ROUTES.ROUTE_SUPER_ADMIN_VISOR_STATICS_PREDICTION_VIEW,
      ROUTES.ROUTE_SUPER_ADMIN_NATIONAL_STATICS,
    ],
    Page: VisorStatics,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_TRADING_PANEL,
      ROUTES.ROUTE_ADMINX_TRADING_PANEL_DASHBOARD,
      ROUTES.ROUTE_PROVINCE_TRADING_PANEL,
      ROUTES.ROUTE_SUPER_ADMIN_TRADING_PANEL,
    ],
    Page: TradePanel,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_DISPENSERS,
      ROUTES.ROUTE_ADMINX_DISPENSERS_MANAGEMENT,
      ROUTES.ROUTE_ADMINX_DISPENSERS_MANAGEMENT_V2,
      ROUTES.ROUTE_ADMINX_DELEGATES_MANAGEMENT,
      ROUTES.ROUTE_ADMINX_DISPENSER_DETAILS,
      ROUTES.ROUTE_ADMINX_DISPENSER_DETAILS_VIEW,
      ROUTES.ROUTE_ADMINX_DISPENSERS_STEWARDS,
      ROUTES.ROUTE_ADMINX_DISPENSERS_KILLHOUSES,
      ROUTES.ROUTE_ADMINX_DISPENSERS_KILLHOUSES_VIEW,
      ROUTES.ROUTE_ADMINX_DISPENSERS_SELL_CARCASS,
      ROUTES.ROUTE_ADMINX_DISPENSERS_INVENTORY,
      ROUTES.ROUTE_ADMINX_SALE_DESTRIBUTION_DETAILS,
      ROUTES.ROUTE_PROVINCE_DISPENSERS,
      ROUTES.ROUTE_PROVINCE_DISPENSERS_MANAGEMENT,
      ROUTES.ROUTE_PROVINCE_DISPENSER_DETAILS,
      ROUTES.ROUTE_PROVINCE_DISPENSER_DETAILS_VIEW,
      ROUTES.ROUTE_PROVINCE_DISPENSERS_STEWARDS,
      ROUTES.ROUTE_PROVINCE_DISPENSERS_KILLHOUSES,
      ROUTES.ROUTE_PROVINCE_DISPENSERS_KILLHOUSES_VIEW,
      ROUTES.ROUTE_PROVINCE_DISPENSERS_SELL_CARCASS,
      ROUTES.ROUTE_PROVINCE_DISPENSERS_INVENTORY,
      ROUTES.ROUTE_PROVINCE_SALE_DESTRIBUTION_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_MANAGEMENT,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSER_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSER_DETAILS_VIEW,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_STEWARDS,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_KILLHOUSES,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_KILLHOUSES_VIEW,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_SELL_CARCASS,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_INVENTORY,
      ROUTES.ROUTE_SUPER_ADMIN_DESTRIBUTION_DETAILS,
    ],
    Page: Dispensers,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTES.ROUTE_ADMINX_DISPENSERS_STOCK,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_STOCK,
    ],
    Page: DispensersStock,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTES.ROUTE_ADMINX_DISPENSERS_STOCK_KILLHOUSE,
      ROUTES.ROUTE_ADMINX_DISPENSERS_STOCK_STEWARD,
      ROUTES.ROUTE_ADMINX_DISPENSERS_STOCK_GUILD,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_STOCK_KILLHOUSE,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_STOCK_STEWARD,
      ROUTES.ROUTE_SUPER_ADMIN_DISPENSERS_STOCK_GUILD,
    ],
    Page: ProvinceDispensersStockSlug,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTES.ROUTE_ADMINXـHATCHINGS,
      ROUTES.ROUTE_ADMINXـHATCHINGS_DETAILS,
      ROUTES.ROUTE_PROVINCEـHATCHINGS,
      ROUTES.ROUTE_PROVINCEـHATCHINGS_DETAILS,
      ROUTES.ROUTE_SUPER_ADMINـHATCHINGS,
      ROUTES.ROUTE_SUPER_ADMINـHATCHINGS_DETAILS,
    ],
    Page: AllHatchings,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTES.ROUTE_ADMINX_COLD_HOUSES,
      ROUTES.ROUTE_ADMINX_COLD_HOUSES_MANAGEMENT,
      ROUTES.ROUTE_ADMINX_COLD_HOUSES_MANAGEMENT_VIEW,
      ROUTES.ROUTE_PROVINCE_COLD_HOUSES,
      ROUTES.ROUTE_PROVINCE_COLD_HOUSES_MANAGEMENT,
      ROUTES.ROUTE_PROVINCE_COLD_HOUSES_MANAGEMENT_VIEW,
      ROUTES.ROUTE_SUPER_ADMIN_COLD_HOUSES,
      ROUTES.ROUTE_SUPER_ADMIN_COLD_HOUSES_MANAGEMENT,
      ROUTES.ROUTE_SUPER_ADMIN_COLD_HOUSES_MANAGEMENT_VIEW,
    ],
    Page: ColdHouses,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_SUB_SECTORS_WAGE,
      ROUTES.ROUTE_ADMINX_SUB_SECTORS_CITY_SHARES,
      ROUTES.ROUTE_ADMINX_SUB_SECTORS_STEWARD_SHARES,
      ROUTES.ROUTE_ADMINX_SUB_SECTORS_VET_FARM_SHARES,
      ROUTES.ROUTE_PROVINCE_SUB_SECTORS_WAGE,
      ROUTES.ROUTE_PROVINCE_SUB_SECTORS_CITY_SHARES,
      ROUTES.ROUTE_PROVINCE_SUB_SECTORS_STEWARD_SHARES,
      ROUTES.ROUTE_PROVINCE_SUB_SECTORS_VET_FARM_SHARES,
      ROUTES.ROUTE_SUPER_ADMIN_SUB_SECTORS_WAGE,
      ROUTES.ROUTE_SUPER_ADMIN_SUB_SECTORS_CITY_SHARES,
      ROUTES.ROUTE_SUPER_ADMIN_SUB_SECTORS_STEWARD_SHARES,
      ROUTES.ROUTE_SUPER_ADMIN_SUB_SECTORS_VET_FARM_SHARES,
    ],
    Page: SubSectorWage,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_KILLERS_WAGES,
      ROUTES.ROUTE_ADMINX_ROUTE_KILLERS_WAGES_DETAILS,
      ROUTES.ROUTE_PROVINCE_ROUTE_KILLERS_WAGES,
      ROUTES.ROUTE_PROVINCE_ROUTE_KILLERS_WAGES_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_KILLERS_WAGES,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_KILLERS_WAGES_DETAILS,
    ],
    Page: KillersWages,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_DIFFRENCE_KILLER,
      ROUTES.ROUTE_ADMINX_DIFFRENCE_KILLER_SLAUGHTER,
      ROUTES.ROUTE_ADMINX_INCREASE_HATCHING,
      ROUTES.ROUTE_PROVINCE_DIFFRENCE_KILLER,
      ROUTES.ROUTE_PROVINCE_DIFFRENCE_KILLER_SLAUGHTER,
      ROUTES.ROUTE_PROVINCE_INCREASE_HATCHING,
      ROUTES.ROUTE_SUPER_ADMIN_DIFFRENCE_KILLER,
      ROUTES.ROUTE_SUPER_ADMIN_DIFFRENCE_KILLER_SLAUGHTER,
      ROUTES.ROUTE_SUPER_ADMIN_INCREASE_HATCHING,
    ],
    Page: DiffrenceKiller,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_DASHBOARD,
      ROUTES.ROUTE_PROVINCE_DASHBOARD,
      ROUTES.ROUTE_SUPER_ADMIN_DASHBOARD,
    ],
    Page: DashboardPage,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_SETTLEMENTS,
      ROUTES.ROUTE_PROVINCE_SETTLEMENTS,
      ROUTES.ROUTE_SUPER_ADMIN_SETTLEMENTS,
    ],
    Page: SettlementPage,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_POULTRY_LIVESTOCK_EXPERTS,
      ROUTES.ROUTE_PROVINCE_POULTRY_LIVESTOCK_EXPERTS,
      ROUTES.ROUTE_SUPER_ADMIN_POULTRY_LIVESTOCK_EXPERTS,
    ],
    Page: PoultryScienceExpertsPage,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_RETURN_PURCHASES,
      ROUTES.ROUTE_PROVINCE_RETURN_PURCHASES,
      ROUTES.ROUTE_SUPER_ADMIN_RETURN_PURCHASES,
    ],
    Page: ReturnPurchases,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_DETAILS,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_FARM,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_FARM_DETAILS,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_HATCHING_DETAILS,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_SLAUGHTER,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_SLAUGHTER_DETAILS,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_DISTRIBUTION_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_FARM,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_FARM_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_HATCHING_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_SLAUGHTER,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_SLAUGHTER_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_DISTRIBUTION_DETAILS,
    ],
    Page: NationalInfo,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_HATCHING,
      ROUTES.ROUTE_ADMINX_NEW_REQUEST,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_DETAILS,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_FARM,
      ROUTES.ROUTE_ADMINX_ROUTE_NATIONAL_INFO_FARM_DETAILS,
      ROUTES.ROUTE_PROVINCE_HATCHING,
      ROUTES.ROUTE_PROVINCE_NEW_REQUEST,
      ROUTES.ROUTE_SUPER_ADMIN_HATCHING,
      ROUTES.ROUTE_SUPER_ADMIN_NEW_REQUEST,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_FARM,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_NATIONAL_INFO_FARM_DETAILS,
    ],
    Page: Hatching,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_SMS,
      ROUTES.ROUTE_ADMINX_ROUTE_SMS_MANAGE,
      ROUTES.ROUTE_ADMINX_ROUTE_SMS_SEND,
      ROUTES.ROUTE_ADMINX_SEND_ANNOUNCEMENT,
      ROUTES.ROUTE_ADMINX_SEND_REPORT,
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_PROCESS_MOBILE_MESSAGE,
      ROUTES.ROUTE_ADMINX_ROUTE_AGE_MESSAGE,
      ROUTES.ROUTE_ADMINX_DASHBOARD_NEWS,
      ROUTES.ROUTE_PROVINCE_ROUTE_SMS,
      ROUTES.ROUTE_PROVINCE_ROUTE_SMS_MANAGE,
      ROUTES.ROUTE_PROVINCE_ROUTE_SMS_SEND,
      ROUTES.ROUTE_PROVINCE_SEND_ANNOUNCEMENT,
      ROUTES.ROUTE_PROVINCE_SEND_REPORT,
      ROUTES.ROUTE_PROVINCE_DASHBOARD_NEWS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_SMS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_SMS_MANAGE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_SMS_SEND,
      ROUTES.ROUTE_SUPER_ADMIN_SEND_ANNOUNCEMENT,
      ROUTES.ROUTE_SUPER_ADMIN_SEND_REPORT,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_PROCESS_MOBILE_MESSAGE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_AGE_MESSAGE,
      ROUTES.ROUTE_SUPER_ADMIN_DASHBOARD_NEWS,
    ],
    Page: SendMassage,
    exact: false,
    props: {},
  },

  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_PROCESS_WAGE_FRACTIONS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_PROCESS_WAGE_FRACTIONS,
    ],
    Page: ManageProcessWages,
    exact: false,
    props: {},
  },

  {
    path: [ROUTES.ROUTE_ADMINX_COMPONENTS_CATALOG],
    Page: ComponentsCatalog,
    exact: false,
    props: {},
  },

  {
    path: [ROUTES.ROUTE_ADMINX_EXCEL_CHECK],
    Page: ExcelCheck,
    exact: false,
    props: {},
  },

  //   export const ROUTE_SUPER_ADMIN_ROUTE_COMPANY_MANAGE_STEWARDS =
  //   ROUTE_SUPER_ADMIN_BASE + "/manage-stewards";
  // export const ROUTE_SUPER_ADMIN_COMPANY_ROUTE_GUILDS =
  //   ROUTE_SUPER_ADMIN_BASE + "/manage-guilds/guilds";
  // export const ROUTE_SUPER_ADMIN_COMPANY_ROUTE_ACTIVE_SESSION =
  //   ROUTE_SUPER_ADMIN_BASE + "/active-session/session";
  // export const ROUTE_SUPER_ADMIN_COMPANY_ROUTE_DEVICES =
  //   ROUTE_SUPER_ADMIN_BASE + "/devices";
  {
    path: [
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_PSP_COMPANIES,
      ROUTES.ROUTE_SUPER_ADMIN_COMPANY_ROUTE_GUILDS,
      ROUTES.ROUTE_SUPER_ADMIN_COMPANY_ROUTE_ACTIVE_SESSION,
      ROUTES.ROUTE_SUPER_ADMIN_COMPANY_ROUTE_DEVICES,
      ROUTES.ROUTE_ADMINX_ROUTE_PSP_COMPANIES,
      ROUTES.ROUTE_ADMINX_COMPANY_ROUTE_GUILDS,
      ROUTES.ROUTE_ADMINX_COMPANY_ROUTE_ACTIVE_SESSION,
      ROUTES.ROUTE_ADMINX_COMPANY_ROUTE_DEVICES,
    ],
    Page: PspCompany,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTES.ROUTE_ADMINX_POULTRIES_DETAILS,
      ROUTES.ROUTE_PROVINCE_POULTRIES_DETAILS,
      ROUTES.ROUTE_SUPER_ADMIN_POULTRIES_DETAILS,
    ],
    Page: PoultriesDetails,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_INSPECTION,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_INSPECTION,
    ],
    Page: Inspection,
    exact: false,
    props: {},
  },
  {
    path: [
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_STEWARDS,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_STEWARDS,
      ROUTES.ROUTE_PROVINCE_ROUTE_MANAGE_STEWARDS,
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_STEWARDS_IN_PROVINCE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_STEWARDS_IN_PROVINCE,
      ROUTES.ROUTE_PROVINCE_ROUTE_MANAGE_STEWARDS_IN_PROVINCE,
      ROUTES.ROUTE_ADMINX_ROUTE_MANAGE_STEWARDS_OUT_PROVINCE,
      ROUTES.ROUTE_SUPER_ADMIN_ROUTE_MANAGE_STEWARDS_OUT_PROVINCE,
      ROUTES.ROUTE_PROVINCE_ROUTE_MANAGE_STEWARDS_OUT_PROVINCE,
    ],
    Page: ManageStewards,
    exact: false,
    props: {},
  },
];

export const getManagerRouting = (role) => {
  if (!role) {
    return consolidatedRouting;
  }

  const routePrefixes = {
    AdminX: "/adminx",
    provinceOperator: "/province",
    SuperAdmin: "/superadmin",
  };

  const rolePrefix = routePrefixes[role];

  if (!rolePrefix) {
    return consolidatedRouting;
  }

  return consolidatedRouting
    .map((routeConfig) => {
      const rolePaths = routeConfig.path.filter((path) =>
        path.startsWith(rolePrefix)
      );

      if (rolePaths.length > 0) {
        return {
          ...routeConfig,
          path: rolePaths,
        };
      }

      return null;
    })
    .filter((routeConfig) => routeConfig !== null);
};
