tracing.tsx 550 B

12345678910111213141516171819202122232425
  1. 'use client'
  2. import type { FC } from 'react'
  3. import Iteration from './iteration'
  4. import type { AgentIteration } from '@/models/log'
  5. type TracingPanelProps = {
  6. list: AgentIteration[]
  7. }
  8. const TracingPanel: FC<TracingPanelProps> = ({ list }) => {
  9. return (
  10. <div className='bg-gray-50'>
  11. {list.map((iteration, index) => (
  12. <Iteration
  13. key={index}
  14. index={index + 1}
  15. isFinal={index + 1 === list.length}
  16. iterationInfo={iteration}
  17. />
  18. ))}
  19. </div>
  20. )
  21. }
  22. export default TracingPanel