"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _toutiao = require("remax/toutiao");

/*
 * @Author: codingfly
 * @Description:
 * @Date: 2022-02-21 08:08:15
 * @LastEditTime: 2022-06-08 10:26:01
 * @FilePath: \remaxui\src\show-modal\index.tt.tsx
 */
var fn = function fn(_ref) {
  var _ref$title = _ref.title,
      title = _ref$title === void 0 ? '提示' : _ref$title,
      _ref$cancelText = _ref.cancelText,
      cancelText = _ref$cancelText === void 0 ? '取消' : _ref$cancelText,
      _ref$confirmText = _ref.confirmText,
      confirmText = _ref$confirmText === void 0 ? '确定' : _ref$confirmText,
      _ref$showCancel = _ref.showCancel,
      showCancel = _ref$showCancel === void 0 ? true : _ref$showCancel,
      _ref$content = _ref.content,
      content = _ref$content === void 0 ? undefined : _ref$content;

  if (showCancel) {
    return (0, _toutiao.showModal)({
      title: title,
      content: content,
      confirmButtonText: confirmText,
      cancelButtonText: cancelText
    });
  }
};

var _default = fn;
exports.default = _default;