import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { PRD_TICKETS_ACCESS_ANY } from "@/lib/admin-prd";
import { PlayerTicketsConsole } from "@/modules/tickets/player-tickets-console";
import { buildPageMetadata } from "@/lib/page-metadata";
import type { Metadata } from "next";

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

export default function AdminTicketsPage() {
  return (
    <ModuleScaffold>
      <AdminPermissionGate requiredAny={PRD_TICKETS_ACCESS_ANY}>
        <PlayerTicketsConsole />
      </AdminPermissionGate>
    </ModuleScaffold>
  );
}
