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.

893 B
Raw Blame
import { Button } from '@langgenius/dify-ui/button'
import { RiArrowLeftLine } from '@remixicon/react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'

type ActionsProps = {
  onBack: () => void
  runDisabled?: boolean
  onProcess: () => void
}

const Actions = ({ onBack, runDisabled, onProcess }: ActionsProps) => {
  const { t } = useTranslation(['datasetPipeline'])

  return (
    <div className="flex items-center justify-between">
      <Button variant="secondary" onClick={onBack}>
        <RiArrowLeftLine className="size-4" />
        <span>{t(($) => $['operations.dataSource'], { ns: 'datasetPipeline' })}</span>
      </Button>
      <Button variant="primary" disabled={runDisabled} onClick={onProcess}>
        {t(($) => $['operations.saveAndProcess'], { ns: 'datasetPipeline' })}
      </Button>
    </div>
  )
}

export default React.memo(Actions)