import { lazy } from "react";
import { lazyRetry } from "../utils/lazyRetry";
import {
  ROUTE_PSP_COMPANY_ROUTE_ACTIVE_SESSION,
  ROUTE_PSP_COMPANY_ROUTE_DEVICES,
  ROUTE_PSP_COMPANY_ROUTE_DEVICES_V2,
  ROUTE_PSP_COMPANY_ROUTE_GUILDS,
  ROUTE_PSP_ROUTE_COMPANY_PSP_COMPANIES,
} from "./routes";

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

const PspDevicesV2 = lazy(() =>
  lazyRetry(() =>
    import("../features/psp-company/components/psp-devices-v2/PspDevicesV2")
  )
);

// export const ROUTE_PSP_ROUTE_COMPANY_MANAGE_STEWARDS =
//   ROUTE_PSP_COMPANY_BASE + "/manage-stewards";

// export const ROUTE_PSP_COMPANY_ROUTE_GUILDS =
//   ROUTE_PSP_COMPANY_BASE + "/manage-guilds/guilds";

// export const ROUTE_PSP_COMPANY_ROUTE_ACTIVE_SESSION =
//   ROUTE_PSP_COMPANY_BASE + "/active-session/session";

// export const ROUTE_PSP_COMPANY_ROUTE_DEVICES =
//   ROUTE_PSP_COMPANY_BASE + "/devices";
export const posCompanyRouting = [
  {
    path: [
      ROUTE_PSP_ROUTE_COMPANY_PSP_COMPANIES,
      ROUTE_PSP_COMPANY_ROUTE_GUILDS,
      ROUTE_PSP_COMPANY_ROUTE_ACTIVE_SESSION,
      ROUTE_PSP_COMPANY_ROUTE_DEVICES,
    ],
    Page: Stewards,
    exact: false,
    props: {},
  },
  {
    path: [ROUTE_PSP_COMPANY_ROUTE_DEVICES_V2],
    Page: PspDevicesV2,
    exact: false,
    props: {},
  },
];
