mirror of
https://github.com/langgenius/dify.git
synced 2025-07-16 13:50:18 +00:00
38 lines
865 B
TypeScript
38 lines
865 B
TypeScript
import React from 'react'
|
|
import Button from '@/app/components/base/button'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { RiArrowLeftLine } from '@remixicon/react'
|
|
|
|
type ActionsProps = {
|
|
onBack: () => void
|
|
onProcess: () => void
|
|
}
|
|
|
|
const Actions = ({
|
|
onBack,
|
|
onProcess,
|
|
}: ActionsProps) => {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div className='flex items-center justify-between'>
|
|
<Button
|
|
variant='secondary'
|
|
onClick={onBack}
|
|
className='gap-x-0.5'
|
|
>
|
|
<RiArrowLeftLine className='size-4' />
|
|
<span className='px-0.5'>{t('datasetPipeline.operations.dataSource')}</span>
|
|
</Button>
|
|
<Button
|
|
variant='primary'
|
|
onClick={onProcess}
|
|
>
|
|
{t('datasetPipeline.operations.saveAndProcess')}
|
|
</Button>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default React.memo(Actions)
|