import { redirect } from "next/navigation";

/** 兼容旧链接：发布页统一为 `/publish/[batchId]`（与接口动词一致）。 */
export default async function AdminDrawReviewBatchRedirectPage(props: {
  params: Promise<{ drawId: string; batchId: string }>;
}) {
  const { drawId, batchId } = await props.params;
  redirect(`/admin/draws/${drawId}/publish/${batchId}`);
}
