mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-06-30 00:55:12 +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>
28 lines
988 B
TypeScript
28 lines
988 B
TypeScript
'use client'
|
|
import Button from '@/app/components/base/button'
|
|
import { RiArrowRightLine } from '@remixicon/react'
|
|
import type { FC } from 'react'
|
|
import React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
type Props = {
|
|
onStart: () => void
|
|
}
|
|
|
|
const NoData: FC<Props> = ({
|
|
onStart,
|
|
}) => {
|
|
const { t } = useTranslation()
|
|
return (
|
|
<div className='rounded-xl bg-gradient-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4 pt-3'>
|
|
<div className='text-xs font-semibold leading-5 text-text-secondary'>{t('dataset.metadata.metadata')}</div>
|
|
<div className='system-xs-regular mt-1 text-text-tertiary'>{t('dataset.metadata.documentMetadata.metadataToolTip')}</div>
|
|
<Button variant='primary' className='mt-2' onClick={onStart}>
|
|
<div>{t('dataset.metadata.documentMetadata.startLabeling')}</div>
|
|
<RiArrowRightLine className='ml-1 size-4' />
|
|
</Button>
|
|
</div>
|
|
)
|
|
}
|
|
export default React.memo(NoData)
|