import $i18n from '../../../../../../../locales/i18n.js';
import React from 'react';
import { CnButton, CnDialog, CnIcon } from '@cainiaofe/cn-ui';
export function ConfirmDialog({ visible, onClose, onSaveConfigOnly, onGenerateFirst5Rows, onGenerateAllRows, saving, executing, isProcessing, isEditStatus, }) {
    return (React.createElement(CnDialog, { visible: visible, onClose: onClose, title: React.createElement("div", { style: { display: 'flex', alignItems: 'center' } },
            React.createElement(CnIcon, { type: "help-color", size: 20, style: { marginRight: '4px' } }),
            $i18n.get({ id: 'GenerateFullColumns', dm: '是否生成全列?' })), size: "small", footer: React.createElement(React.Fragment, null,
            isEditStatus && (React.createElement(CnButton, { type: "secondary", onClick: onSaveConfigOnly, loading: saving, disabled: isProcessing }, $i18n.get({ id: 'SaveConfigurationOnly', dm: '仅保存配置' }))),
            React.createElement(CnButton, { type: "secondary", onClick: onGenerateAllRows, loading: executing, disabled: isProcessing }, $i18n.get({ id: 'GenerateFullColumn', dm: '生成全列' })),
            React.createElement(CnButton, { type: "primary", onClick: onGenerateFirst5Rows, loading: executing, disabled: isProcessing }, $i18n.get({ id: 'GenerateTheFirst5Rows', dm: '生成前5行' }))), okProps: {
            visible: false,
        }, cancelProps: {
            visible: false,
        } }, $i18n.get({
        id: 'ConfirmThatGeneratingAFullColumn_1278071209',
        dm: '确认生成全列将自动更新当前视图下整列内容，并覆盖现有记录。本次操作可能需要一点时间。',
    })));
}
