mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-25 07:38:15 +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>
22 lines
860 B
TypeScript
22 lines
860 B
TypeScript
'use client'
|
|
import { useSearchParams } from 'next/navigation'
|
|
import { useTranslation } from 'react-i18next'
|
|
const Empty = () => {
|
|
const { t } = useTranslation()
|
|
const searchParams = useSearchParams()
|
|
|
|
return (
|
|
<div className='flex flex-col items-center'>
|
|
<div className="h-[149px] w-[163px] shrink-0 bg-[url('~@/app/components/tools/add-tool-modal/empty.png')] bg-cover bg-no-repeat"></div>
|
|
<div className='mb-1 text-[13px] font-medium leading-[18px] text-text-primary'>
|
|
{t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTitle' : 'emptyTitleCustom'}`)}
|
|
</div>
|
|
<div className='text-[13px] leading-[18px] text-text-tertiary'>
|
|
{t(`tools.addToolModal.${searchParams.get('category') === 'workflow' ? 'emptyTip' : 'emptyTipCustom'}`)}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Empty
|