dify/web/features/agent-v2/agent-detail/page.tsx
盐粒 Yanli 8732d1463a
chore(agent-v2): sync nightly updates to main (2026-06-18) (#37610)
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
2026-06-18 15:34:51 +00:00

32 lines
777 B
TypeScript

'use client'
import type { AgentDetailSectionKey } from './section'
import { AgentAccessPage } from './access/page'
import { AgentConfigurePage } from './configure/page'
import { AgentLogsPage } from './logs/page'
import { AgentMonitoringPage } from './monitoring/page'
type AgentDetailPageProps = {
agentId: string
section: AgentDetailSectionKey
}
export function AgentDetailPage({
agentId,
section,
}: AgentDetailPageProps) {
if (section === 'monitoring')
return <AgentMonitoringPage agentId={agentId} />
if (section === 'logs')
return <AgentLogsPage agentId={agentId} />
if (section === 'access')
return <AgentAccessPage agentId={agentId} />
if (section === 'configure')
return <AgentConfigurePage agentId={agentId} />
return null
}