Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1.1 KB
Raw Blame
'use client'
import type { FC } from 'react'
import { Button } from '@langgenius/dify-ui/button'
import { RiArrowRightLine } from '@remixicon/react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'

type Props = Readonly<{
  onStart: () => void
}>

const NoData: FC<Props> = ({ onStart }) => {
  const { t } = useTranslation(['dataset'])
  return (
    <div className="rounded-xl bg-linear-to-r from-workflow-workflow-progress-bg-1 to-workflow-workflow-progress-bg-2 p-4 pt-3">
      <div className="text-xs/5 font-semibold text-text-secondary">
        {t(($) => $['metadata.metadata'], { ns: 'dataset' })}
      </div>
      <div className="mt-1 system-xs-regular text-text-tertiary">
        {t(($) => $['metadata.documentMetadata.metadataToolTip'], { ns: 'dataset' })}
      </div>
      <Button variant="primary" className="mt-2" onClick={onStart}>
        <div>{t(($) => $['metadata.documentMetadata.startLabeling'], { ns: 'dataset' })}</div>
        <RiArrowRightLine className="size-4" />
      </Button>
    </div>
  )
}
export default React.memo(NoData)