Files
ai-agent/web/app/dashboard/ai-agents/config/page.tsx
T

21 lines
548 B
TypeScript
Raw Normal View History

2026-06-22 10:30:08 +08:00
"use client"
2026-06-22 10:37:31 +08:00
import { useState } from "react"
2026-06-22 10:30:08 +08:00
2026-06-22 10:37:31 +08:00
import { AIAgentConfigWorkbench } from "../_components/config-workbench"
2026-06-22 10:30:08 +08:00
function readAgentIdFromLocation() {
if (typeof window === "undefined") return 0
return Number(new URLSearchParams(window.location.search).get("agentId"))
}
export default function DashboardAIAgentConfigPage() {
const [agentId] = useState(() => readAgentIdFromLocation())
return (
2026-06-22 10:37:31 +08:00
<div className="h-[calc(100vh-var(--header-height))] min-h-0">
2026-06-22 11:33:35 +08:00
<AIAgentConfigWorkbench agentId={agentId} />
2026-06-22 10:30:08 +08:00
</div>
)
}