You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

empty.tsx 1.0KB

123456789101112131415161718192021222324252627282930
  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. const docLink = useDocLink()
  10. return (
  11. <div className='mb-2 rounded-xl bg-background-section p-6'>
  12. <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'>
  13. <RiPuzzle2Line className='h-5 w-5 text-text-accent' />
  14. </div>
  15. <div className='system-sm-medium mb-1 text-text-secondary'>{t('common.apiBasedExtension.title')}</div>
  16. <a
  17. className='system-xs-regular flex items-center text-text-accent'
  18. href={docLink('/guides/extension/api-based-extension/README')}
  19. target='_blank' rel='noopener noreferrer'
  20. >
  21. {t('common.apiBasedExtension.link')}
  22. <RiExternalLinkLine className='ml-1 h-3 w-3' />
  23. </a>
  24. </div>
  25. )
  26. }
  27. export default Empty