import { lazy } from "react";
import { lazyRetry } from "../utils/lazyRetry";
import { ROUTE_DRIVER_CARS, ROUTE_DRIVER_REQUESTS } from "./routes";

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

export const driverRouting = [
  {
    path: [ROUTE_DRIVER_REQUESTS, ROUTE_DRIVER_CARS],
    Page: Driver,
    exact: false,
    props: {},
  },
];
