mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-29 01:28:22 +08:00

Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
29 lines
974 B
TypeScript
29 lines
974 B
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import {
|
|
RiExternalLinkLine,
|
|
RiPuzzle2Line,
|
|
} from '@remixicon/react'
|
|
|
|
const Empty = () => {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<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' />
|
|
</div>
|
|
<div className='system-sm-medium mb-1 text-text-secondary'>{t('common.apiBasedExtension.title')}</div>
|
|
<a
|
|
className='system-xs-regular flex items-center text-text-accent'
|
|
href={t('common.apiBasedExtension.linkUrl') || '/'}
|
|
target='_blank' rel='noopener noreferrer'
|
|
>
|
|
{t('common.apiBasedExtension.link')}
|
|
<RiExternalLinkLine className='ml-1 h-3 w-3' />
|
|
</a>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Empty
|