import { IconFont } from '@zgfe/business-lib';
import { Modal } from 'antd';
import React from 'react';
import './styles/index.less';
var confirm = Modal.confirm;
var classPrefix = 'confirm-tip';
export var ConfirmTip = function ConfirmTip(data, _onOk, _onCancel, disabled) {
  return confirm({
    className: classPrefix,
    maskStyle: {
      background: 'rgba(2, 20, 41, 0.9)'
    },
    title: /*#__PURE__*/React.createElement("div", {
      className: "".concat(classPrefix, "-title")
    }, /*#__PURE__*/React.createElement(IconFont, {
      type: "tishi1"
    }), data.title || '提示'),
    width: 384,
    icon: null,
    content: data.content,
    okButtonProps: {
      disabled: disabled,
      className: "".concat(classPrefix, "-confirm")
    },
    okText: data.okLabel || '确定',
    cancelText: data.cancelLabel || '取消',
    onOk: function onOk() {
      _onOk();
    },
    onCancel: function onCancel() {
      if (_onCancel) {
        _onCancel();
      }
    }
  });
};