import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
import { DrawReviewConsole } from "@/modules/draws/draw-review-console";
import { PRD_DRAW_RESULT_MANAGE } from "@/lib/admin-prd";

export default async function AdminDrawReviewPage(props: {
  params: Promise<{ drawId: string }>;
}) {
  const { drawId } = await props.params;
  return (
    <AdminPermissionGate requiredAny={[PRD_DRAW_RESULT_MANAGE]}>
      <DrawReviewConsole drawId={drawId} />
    </AdminPermissionGate>
  );
}
