import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { AgentLineProvisionWizard } from "@/modules/agents/agent-line-provision-wizard";
import { PRD_AGENT_LINE_PROVISION_ACCESS_ANY } from "@/lib/admin-prd";
import { buildPageMetadata } from "@/lib/page-metadata";
import type { Metadata } from "next";

export const metadata: Metadata = buildPageMetadata("agents", "subnav.provision");

export default function AgentProvisionPage() {
  return (
    <ModuleScaffold embedded>
      <AdminPermissionGate requiredAny={[...PRD_AGENT_LINE_PROVISION_ACCESS_ANY]}>
        <AgentLineProvisionWizard />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}
