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

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

export default function AdminRulesPlaysPage() {
  return (
    <AdminPermissionGate requiredAny={PRD_RULES_PLAYS_ACCESS_ANY}>
      <RulesPageShell>
        <PlayConfigDocScreen />
      </RulesPageShell>
    </AdminPermissionGate>
  );
}
