import BreadCrumbLink from "@/layouts/shared/page.breadcrumbLink";
import type { Route } from "./+types/page";
import ExportRequestsClientPage from "./_client";

export const handle = {
  breadcrumb: () => (
    <BreadCrumbLink links={[{ label: "Export Requests" }]} />
  ),
};

/*
 * No loader fetch.
 *
 * The list is refetched after every approve/reject, so loading it here would only
 * duplicate the first client fetch. Access is decided by core — it returns the
 * whole queue to a super admin and only the caller's own requests otherwise — so
 * there is nothing to gate here either.
 */
const Page: React.FC<Route.ComponentProps> = () => <ExportRequestsClientPage />;

export default Page;
