empty.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import { useTranslation } from 'react-i18next'
  2. import {
  3. // RiExternalLinkLine,
  4. RiPuzzle2Line,
  5. } from '@remixicon/react'
  6. // import { useDocLink } from '@/context/i18n'
  7. const Empty = () => {
  8. const { t } = useTranslation()
  9. // zlwu12 2025-09-18 注释
  10. // const docLink = useDocLink()
  11. return (
  12. <div className='mb-2 rounded-xl bg-background-section p-6'>
  13. <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'>
  14. <RiPuzzle2Line className='h-5 w-5 text-text-accent' />
  15. </div>
  16. <div className='system-sm-medium mb-1 text-text-secondary'>{t('common.apiBasedExtension.title')}</div>
  17. {/* zlwu12 2025-09-18 注释 */}
  18. {/* <a
  19. className='system-xs-regular flex items-center text-text-accent'
  20. href={docLink('/guides/extension/api-based-extension/README')}
  21. target='_blank' rel='noopener noreferrer'
  22. >
  23. {t('common.apiBasedExtension.link')}
  24. <RiExternalLinkLine className='ml-1 h-3 w-3' />
  25. </a> */}
  26. </div>
  27. )
  28. }
  29. export default Empty