import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { PRD_PLAYERS_ACCESS_ANY } from "@/lib/admin-prd";
import { PlayersConsole } from "@/modules/players/players-console";
import { buildPageMetadata } from "@/lib/page-metadata";
import type { Metadata } from "next";

export const metadata: Metadata = buildPageMetadata("players", "title");

export default function AdminPlayersPage() {
  return (
    <ModuleScaffold>
      <AdminPermissionGate requiredAny={PRD_PLAYERS_ACCESS_ANY}>
        <PlayersConsole />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}
