mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 11:56:55 +08:00
32 lines
707 B
TypeScript
32 lines
707 B
TypeScript
import AgentLogItem from './agent-log-item'
|
|
import AgentLogNav from './agent-log-nav'
|
|
import type { AgentLogItemWithChildren } from '@/types/workflow'
|
|
|
|
type AgentResultPanelProps = {
|
|
list: AgentLogItemWithChildren[]
|
|
setAgentResultList: (list: AgentLogItemWithChildren[]) => void
|
|
}
|
|
const AgentResultPanel = ({
|
|
list,
|
|
}: AgentResultPanelProps) => {
|
|
return (
|
|
<div className='overflow-y-auto'>
|
|
<AgentLogNav />
|
|
{
|
|
<div className='p-2'>
|
|
{
|
|
list.map(item => (
|
|
<AgentLogItem
|
|
key={item.id}
|
|
item={item}
|
|
/>
|
|
))
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default AgentResultPanel
|