import { Navigate, Routes, Route, Outlet } from "react-router-dom";
import { PageLink, PageTitle } from "../../../../_digifi/layout/core";

import ApproveRejectPage from "./ApproveRejectPage";

const processBreadCrumbs: Array<PageLink> = [
  {
    title: "Loan",
    path: "/loan/pages/process/verified",
    isSeparator: false,
    isActive: false,
  },
  {
    title: "",
    path: "",
    isSeparator: true,
    isActive: false,
  },
];

const ApproveRejectRoutes = () => (
  <Routes>
    <Route
      element={
        <>
          {/* <ProcessHeader /> */}
          <Outlet />
        </>
      }
    >
      <Route
        path="process"
        element={
          <> 
            <PageTitle breadcrumbs={processBreadCrumbs}>Verified</PageTitle>
            <ApproveRejectPage />
          </>
        }
      />
      <Route index element={<Navigate to="/loan/verified/process" />} />
    </Route>
  </Routes>
);

export default ApproveRejectRoutes;
