import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { PRD_RISK_CAP_ACCESS_ANY } from "@/lib/admin-prd";
import { RiskCapDocScreen } from "@/modules/config/doc/risk-cap-doc-screen";
import { RulesPageShell } from "@/modules/rules/rules-page-shell";
import { buildPageMetadata } from "@/lib/page-metadata";
import type { Metadata } from "next";

export const metadata: Metadata = buildPageMetadata("config", "nav.riskCapTitle");

export default function AdminRiskCapPage() {
  return (
    <RulesPageShell>
      <AdminPermissionGate requiredAny={PRD_RISK_CAP_ACCESS_ANY}>
        <RiskCapDocScreen />
      </AdminPermissionGate>
    </RulesPageShell>
  );
}
