| 
									
										
										
										
											2025-02-17 17:05:13 +08:00
										 |  |  | import type { ReactNode } from 'react' | 
					
						
							| 
									
										
										
										
											2024-12-03 13:56:40 +08:00
										 |  |  | import React from 'react' | 
					
						
							|  |  |  | import { Variable02 } from '../icons/src/vender/solid/development' | 
					
						
							|  |  |  | import VerticalLine from './vertical-line' | 
					
						
							|  |  |  | import HorizontalLine from './horizontal-line' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | type ListEmptyProps = { | 
					
						
							|  |  |  |   title?: string | 
					
						
							| 
									
										
										
										
											2025-02-17 17:05:13 +08:00
										 |  |  |   description?: ReactNode | 
					
						
							|  |  |  |   icon?: ReactNode | 
					
						
							| 
									
										
										
										
											2024-12-03 13:56:40 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | const ListEmpty = ({ | 
					
						
							|  |  |  |   title, | 
					
						
							|  |  |  |   description, | 
					
						
							| 
									
										
										
										
											2025-02-17 17:05:13 +08:00
										 |  |  |   icon, | 
					
						
							| 
									
										
										
										
											2024-12-03 13:56:40 +08:00
										 |  |  | }: ListEmptyProps) => { | 
					
						
							|  |  |  |   return ( | 
					
						
							| 
									
										
										
										
											2025-03-21 17:41:03 +08:00
										 |  |  |     <div className='flex w-[320px] flex-col items-start gap-2 rounded-[10px] bg-workflow-process-bg p-4'> | 
					
						
							|  |  |  |       <div className='flex h-10 w-10 items-center justify-center gap-2 rounded-[10px]'> | 
					
						
							|  |  |  |         <div className='relative flex grow items-center justify-center gap-2 self-stretch rounded-[10px] border-[0.5px] | 
					
						
							|  |  |  |           border-components-card-border bg-components-card-bg p-1 shadow-lg'> | 
					
						
							|  |  |  |           {icon || <Variable02 className='h-5 w-5 shrink-0 text-text-accent' />} | 
					
						
							| 
									
										
										
										
											2024-12-03 13:56:40 +08:00
										 |  |  |           <VerticalLine className='absolute -right-[1px] top-1/2 -translate-y-1/4'/> | 
					
						
							|  |  |  |           <VerticalLine className='absolute -left-[1px] top-1/2 -translate-y-1/4'/> | 
					
						
							| 
									
										
										
										
											2025-03-21 17:41:03 +08:00
										 |  |  |           <HorizontalLine className='absolute left-3/4 top-0 -translate-x-1/4 -translate-y-1/2'/> | 
					
						
							|  |  |  |           <HorizontalLine className='absolute left-3/4 top-full -translate-x-1/4 -translate-y-1/2' /> | 
					
						
							| 
									
										
										
										
											2024-12-03 13:56:40 +08:00
										 |  |  |         </div> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |       <div className='flex flex-col items-start gap-1 self-stretch'> | 
					
						
							| 
									
										
										
										
											2025-03-21 17:41:03 +08:00
										 |  |  |         <div className='system-sm-medium text-text-secondary'>{title}</div> | 
					
						
							| 
									
										
										
										
											2024-12-03 13:56:40 +08:00
										 |  |  |         {description} | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   ) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default ListEmpty |