tracing-panel.tsx 452 B

1234567891011121314151617181920212223
  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. }
  8. const TracingPanel: FC<TracingPanelProps> = ({ list }) => {
  9. return (
  10. <div className='bg-gray-50 py-2'>
  11. {list.map(node => (
  12. <NodePanel
  13. key={node.id}
  14. nodeInfo={node}
  15. />
  16. ))}
  17. </div>
  18. )
  19. }
  20. export default TracingPanel