import { lazy } from "react";
import { lazyRetry } from "../utils/lazyRetry";
import {
  ROUTE_PARENT_COMPANY_ALLOCATIONS,
  ROUTE_PARENT_COMPANY_PAYING_FEES_REQUESTS,
  ROUTE_PARENT_COMPANY_PAYING_FEES_VIEW,
} from "./routes";

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

export const parentCompanyRouting = [
  {
    path: [
      ROUTE_PARENT_COMPANY_PAYING_FEES_VIEW,
      ROUTE_PARENT_COMPANY_PAYING_FEES_REQUESTS,
      ROUTE_PARENT_COMPANY_ALLOCATIONS,
    ],
    Page: ParentCompanyRequests,
    exact: false,
    props: {},
  },
];
