| 
									
										
										
										
											2025-05-03 17:16:00 +08:00
										 |  |  | import TemplateCard from './template-card' | 
					
						
							| 
									
										
										
										
											2025-05-07 11:30:13 +08:00
										 |  |  | import { usePipelineTemplateList } from '@/service/use-pipeline' | 
					
						
							| 
									
										
										
										
											2025-05-03 17:16:00 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | const CustomizedList = () => { | 
					
						
							| 
									
										
										
										
											2025-05-07 11:30:13 +08:00
										 |  |  |   const { data: pipelineList, isLoading } = usePipelineTemplateList({ type: 'customized' }) | 
					
						
							| 
									
										
										
										
											2025-06-11 10:40:32 +08:00
										 |  |  |   const list = pipelineList?.pipeline_templates | 
					
						
							| 
									
										
										
										
											2025-05-07 11:30:13 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   if (isLoading || !list) | 
					
						
							|  |  |  |     return null | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-05-03 17:16:00 +08:00
										 |  |  |   return ( | 
					
						
							|  |  |  |     <div className='grid grow grid-cols-1 gap-3 overflow-y-auto px-16 pt-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4'> | 
					
						
							| 
									
										
										
										
											2025-05-07 11:30:13 +08:00
										 |  |  |       {list.map((pipeline, index) => ( | 
					
						
							| 
									
										
										
										
											2025-05-03 17:16:00 +08:00
										 |  |  |         <TemplateCard | 
					
						
							|  |  |  |           key={index} | 
					
						
							| 
									
										
										
										
											2025-06-11 11:51:19 +08:00
										 |  |  |           type='customized' | 
					
						
							| 
									
										
										
										
											2025-05-03 17:16:00 +08:00
										 |  |  |           pipeline={pipeline} | 
					
						
							|  |  |  |         /> | 
					
						
							|  |  |  |       ))} | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   ) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default CustomizedList |