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'
|
2023-11-06 19:36:32 +08:00
|
|
|
|
|
|
|
const Empty = () => {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
|
|
|
return (
|
2025-03-07 11:56:20 +08:00
|
|
|
<div className='mb-2 p-6 rounded-xl bg-background-section'>
|
|
|
|
<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'>
|
|
|
|
<RiPuzzle2Line className='w-5 h-5 text-text-accent' />
|
2023-11-06 19:36:32 +08:00
|
|
|
</div>
|
2025-03-07 11:56:20 +08:00
|
|
|
<div className='mb-1 text-text-secondary system-sm-medium'>{t('common.apiBasedExtension.title')}</div>
|
2023-11-06 19:36:32 +08:00
|
|
|
<a
|
2025-03-07 11:56:20 +08:00
|
|
|
className='flex items-center system-xs-regular text-text-accent'
|
2023-11-06 19:36:32 +08:00
|
|
|
href={t('common.apiBasedExtension.linkUrl') || '/'}
|
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-07 11:56:20 +08:00
|
|
|
<RiExternalLinkLine className='ml-1 w-3 h-3' />
|
2023-11-06 19:36:32 +08:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Empty
|