import React, { type FC } from 'react' import Modal from '@/app/components/base/modal' import type { VersionHistory } from '@/types/workflow' import { useTranslation } from 'react-i18next' import Button from '@/app/components/base/button' type DeleteConfirmModalProps = { isOpen: boolean versionInfo: VersionHistory onClose: () => void onDelete: (id: string) => void } const DeleteConfirmModal: FC = ({ isOpen, versionInfo, onClose, onDelete, }) => { const { t } = useTranslation() return
{`${t('common.operation.delete')} ${versionInfo.marked_name || t('workflow.versionHistory.defaultName')}`}

{t('workflow.versionHistory.deletionTip')}

} export default DeleteConfirmModal