import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { DrawResultsConsole } from "@/modules/draws/draw-results-console";
import { PRD_DRAW_ACCESS_ANY } from "@/lib/admin-prd";

export default async function AdminDrawResultsPage(props: {
  params: Promise<{ drawId: string }>;
}) {
  const { drawId } = await props.params;
  return (
    <AdminPermissionGate requiredAny={PRD_DRAW_ACCESS_ANY}>
      <DrawResultsConsole drawId={drawId} />
    </AdminPermissionGate>
  );
}
