mirror of
https://github.com/langgenius/dify.git
synced 2026-07-28 23:59:34 +08:00
25 lines
756 B
TypeScript
25 lines
756 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
|
|
}
|