tracing-panel.tsx 626 B

1234567891011121314151617181920212223242526
  1. 'use client'
  2. import type { FC } from 'react'
  3. import NodePanel from './node'
  4. import type { NodeTracing } from '@/types/workflow'
  5. type TracingPanelProps = {
  6. list: NodeTracing[]
  7. onShowIterationDetail: (detail: NodeTracing[][]) => void
  8. }
  9. const TracingPanel: FC<TracingPanelProps> = ({ list, onShowIterationDetail }) => {
  10. return (
  11. <div className='bg-gray-50 py-2'>
  12. {list.map(node => (
  13. <NodePanel
  14. key={node.id}
  15. nodeInfo={node}
  16. onShowIterationDetail={onShowIterationDetail}
  17. justShowIterationNavArrow
  18. />
  19. ))}
  20. </div>
  21. )
  22. }
  23. export default TracingPanel