You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/app/components/workflow/run/agent-log/tool-call-result-panel.tsx

46 lines
1.1 KiB
TypeScript

import Button from '@/app/components/base/button'
import { RiArrowLeftLine } from '@remixicon/react'
import TracingPanel from '../tracing-panel'
type ToolCallResultPanelProps = {
onBack: () => void
onClose: () => void
}
const ToolCallResultPanel = ({
onBack,
onClose,
}: ToolCallResultPanelProps) => {
return (
<div className='overflow-y-auto'>
<div className='flex items-center p-1 pr-3 h-8'>
<Button
className='shrink-0 px-[5px]'
size='small'
variant='ghost-accent'
onClick={onBack}
>
<RiArrowLeftLine className='mr-1 w-3.5 h-3.5' />
Back
</Button>
<div className='shrink-0 mx-0.5 system-xs-regular text-divider-deep'>/</div>
<div className='grow px-[5px] system-xs-medium-uppercase'>
10 Logs
</div>
<Button
className='px-[5px]'
size='small'
variant='ghost-accent'
onClick={onClose}
>
close
</Button>
</div>
<TracingPanel
list={[]}
/>
</div>
)
}
export default ToolCallResultPanel