import { ModuleScaffold } from "@/components/admin/module-scaffold";
import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { DrawsIndexConsole } from "@/modules/draws/draws-index-console";
import { PRD_DRAW_ACCESS_ANY } from "@/lib/admin-prd";
import { buildPageMetadata } from "@/lib/page-metadata";
import type { Metadata } from "next";

export const metadata: Metadata = buildPageMetadata("draws", "statusListTitle");

export default function AdminDrawsPage() {
  return (
    <AdminPermissionGate requiredAny={PRD_DRAW_ACCESS_ANY}>
      <ModuleScaffold>
        <DrawsIndexConsole />
      </ModuleScaffold>
    </AdminPermissionGate>
  );
}
