Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

904 B
Raw Blame
'use client'

import type { AgentDetailSectionKey } from './section'
import { AgentAccessConfigPage } from './access-config/page'
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 === 'access-config') return <AgentAccessConfigPage agentId={agentId} />

  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
}