20 lines
557 B
TypeScript
20 lines
557 B
TypeScript
import { requireAgentWorkflowAdmin } from "@/lib/middleware/admin";
|
|
import { redirect } from "next/navigation";
|
|
import { PsdTemplatesSettingsClient } from "./psd-templates-settings-client";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default async function AgentWorkflowPsdTemplatesPage() {
|
|
const session = await requireAgentWorkflowAdmin().catch(() => null);
|
|
if (!session) {
|
|
redirect("/");
|
|
}
|
|
|
|
return (
|
|
<PsdTemplatesSettingsClient
|
|
backHref="/settings/agent-workflow"
|
|
backLabel="返回风格化工作流配置"
|
|
/>
|
|
);
|
|
}
|