| 
									
										
										
										
											2024-04-08 18:51:46 +08:00
										 |  |  | 'use client' | 
					
						
							|  |  |  | import type { FC } from 'react' | 
					
						
							|  |  |  | import NodePanel from './node' | 
					
						
							|  |  |  | import type { NodeTracing } from '@/types/workflow' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type TracingPanelProps = { | 
					
						
							|  |  |  |   list: NodeTracing[] | 
					
						
							| 
									
										
										
										
											2024-05-27 21:57:08 +08:00
										 |  |  |   onShowIterationDetail: (detail: NodeTracing[][]) => void | 
					
						
							| 
									
										
										
										
											2024-04-08 18:51:46 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-27 21:57:08 +08:00
										 |  |  | const TracingPanel: FC<TracingPanelProps> = ({ list, onShowIterationDetail }) => { | 
					
						
							| 
									
										
										
										
											2024-04-08 18:51:46 +08:00
										 |  |  |   return ( | 
					
						
							|  |  |  |     <div className='bg-gray-50 py-2'> | 
					
						
							|  |  |  |       {list.map(node => ( | 
					
						
							|  |  |  |         <NodePanel | 
					
						
							|  |  |  |           key={node.id} | 
					
						
							|  |  |  |           nodeInfo={node} | 
					
						
							| 
									
										
										
										
											2024-05-27 21:57:08 +08:00
										 |  |  |           onShowIterationDetail={onShowIterationDetail} | 
					
						
							|  |  |  |           justShowIterationNavArrow | 
					
						
							| 
									
										
										
										
											2024-04-08 18:51:46 +08:00
										 |  |  |         /> | 
					
						
							|  |  |  |       ))} | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   ) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default TracingPanel |