empty.tsx 974 B

1234567891011121314151617181920212223242526272829
  1. import { useTranslation } from 'react-i18next'
  2. import {
  3. RiExternalLinkLine,
  4. RiPuzzle2Line,
  5. } from '@remixicon/react'
  6. const Empty = () => {
  7. const { t } = useTranslation()
  8. return (
  9. <div className='mb-2 p-6 rounded-xl bg-background-section'>
  10. <div className='flex items-center justify-center mb-3 w-10 h-10 rounded-[10px] bg-components-card-bg-alt backdrop-blur-sm border-[0.5px] border-components-card-border shadow-lg'>
  11. <RiPuzzle2Line className='w-5 h-5 text-text-accent' />
  12. </div>
  13. <div className='mb-1 text-text-secondary system-sm-medium'>{t('common.apiBasedExtension.title')}</div>
  14. <a
  15. className='flex items-center system-xs-regular text-text-accent'
  16. href={t('common.apiBasedExtension.linkUrl') || '/'}
  17. target='_blank' rel='noopener noreferrer'
  18. >
  19. {t('common.apiBasedExtension.link')}
  20. <RiExternalLinkLine className='ml-1 w-3 h-3' />
  21. </a>
  22. </div>
  23. )
  24. }
  25. export default Empty