import { Suspense } from "react";
import { BulkAssignLeadsPage } from "@/components/leads/bulk-assign-leads-page";

export const metadata = {
  title: "Bulk Assign Leads | Jumppace CRM",
  description: "Assign Team, AE, BDR, and Contributors across many leads.",
};

/**
 * Dedicated bulk-assign route. The page is **selection-driven** — the user
 * checks rows on `/leads` and the entries are snapshotted into the
 * `bulkAssignLeads` Redux slice before navigating here. No leads are fetched
 * on this page; a hard refresh resets the slice and renders the empty state.
 *
 * Permission gating is enforced inside `BulkAssignLeadsPage` against
 * `session.backendUser` so merged `customPermissions` are visible.
 */
export default function Page() {
  return (
    <Suspense fallback={null}>
      <BulkAssignLeadsPage />
    </Suspense>
  );
}
