| 
									
										
										
										
											2023-11-06 19:36:32 +08:00
										 |  |  | import { useTranslation } from 'react-i18next' | 
					
						
							| 
									
										
										
										
											2025-03-07 11:56:20 +08:00
										 |  |  | import { | 
					
						
							|  |  |  |   RiExternalLinkLine, | 
					
						
							|  |  |  |   RiPuzzle2Line, | 
					
						
							|  |  |  | } from '@remixicon/react' | 
					
						
							| 
									
										
										
										
											2025-06-17 16:14:53 +08:00
										 |  |  | import { useDocLink } from '@/context/i18n' | 
					
						
							| 
									
										
										
										
											2023-11-06 19:36:32 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | const Empty = () => { | 
					
						
							|  |  |  |   const { t } = useTranslation() | 
					
						
							| 
									
										
										
										
											2025-06-17 16:14:53 +08:00
										 |  |  |   const docLink = useDocLink() | 
					
						
							| 
									
										
										
										
											2023-11-06 19:36:32 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   return ( | 
					
						
							| 
									
										
										
										
											2025-03-21 17:41:03 +08:00
										 |  |  |     <div className='mb-2 rounded-xl bg-background-section p-6'> | 
					
						
							|  |  |  |       <div className='mb-3 flex h-10 w-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg-alt shadow-lg backdrop-blur-sm'> | 
					
						
							|  |  |  |         <RiPuzzle2Line className='h-5 w-5 text-text-accent' /> | 
					
						
							| 
									
										
										
										
											2023-11-06 19:36:32 +08:00
										 |  |  |       </div> | 
					
						
							| 
									
										
										
										
											2025-03-21 17:41:03 +08:00
										 |  |  |       <div className='system-sm-medium mb-1 text-text-secondary'>{t('common.apiBasedExtension.title')}</div> | 
					
						
							| 
									
										
										
										
											2023-11-06 19:36:32 +08:00
										 |  |  |       <a | 
					
						
							| 
									
										
										
										
											2025-03-21 17:41:03 +08:00
										 |  |  |         className='system-xs-regular flex items-center text-text-accent' | 
					
						
							| 
									
										
										
										
											2025-06-17 16:14:53 +08:00
										 |  |  |         href={docLink('/guides/extension/api-based-extension/README')} | 
					
						
							| 
									
										
										
										
											2024-02-02 15:24:17 +08:00
										 |  |  |         target='_blank' rel='noopener noreferrer' | 
					
						
							| 
									
										
										
										
											2023-11-06 19:36:32 +08:00
										 |  |  |       > | 
					
						
							|  |  |  |         {t('common.apiBasedExtension.link')} | 
					
						
							| 
									
										
										
										
											2025-03-21 17:41:03 +08:00
										 |  |  |         <RiExternalLinkLine className='ml-1 h-3 w-3' /> | 
					
						
							| 
									
										
										
										
											2023-11-06 19:36:32 +08:00
										 |  |  |       </a> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   ) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default Empty |