| 
									
										
										
										
											2024-12-19 21:19:08 +08:00
										 |  |  | 'use client' | 
					
						
							|  |  |  | import { useSearchParams } from 'next/navigation' | 
					
						
							| 
									
										
										
										
											2024-05-27 21:57:08 +08:00
										 |  |  | import { useTranslation } from 'react-i18next' | 
					
						
							|  |  |  | const Empty = () => { | 
					
						
							|  |  |  |   const { t } = useTranslation() | 
					
						
							| 
									
										
										
										
											2024-12-19 21:19:08 +08:00
										 |  |  |   const searchParams = useSearchParams() | 
					
						
							| 
									
										
										
										
											2024-05-27 21:57:08 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   return ( | 
					
						
							|  |  |  |     <div className='flex flex-col items-center'> | 
					
						
							| 
									
										
										
										
											2025-03-21 17:41:03 +08:00
										 |  |  |       <div className="h-[149px] w-[163px] shrink-0 bg-[url('~@/app/components/tools/add-tool-modal/empty.png')] bg-cover bg-no-repeat"></div> | 
					
						
							|  |  |  |       <div className='mb-1 text-[13px] font-medium leading-[18px] text-text-primary'> | 
					
						
							| 
									
										
										
										
											2024-12-19 21:19:08 +08:00
										 |  |  |         {t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTitle' : 'emptyTitleCustom'}`)} | 
					
						
							|  |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2025-03-21 17:41:03 +08:00
										 |  |  |       <div className='text-[13px] leading-[18px] text-text-tertiary'> | 
					
						
							| 
									
										
										
										
											2024-12-19 21:19:08 +08:00
										 |  |  |         {t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTip' : 'emptyTipCustom'}`)} | 
					
						
							|  |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2024-05-27 21:57:08 +08:00
										 |  |  |     </div> | 
					
						
							|  |  |  |   ) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default Empty |