"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _button = _interopRequireDefault(require("antd/lib/button"));
require("./index.less");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
function Modal(props) {
  var title = props.title,
    footer = props.footer,
    _props$width = props.width,
    width = _props$width === void 0 ? 520 : _props$width,
    onOk = props.onOk;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "vtx-demo-modal",
    style: {
      width: width
    }
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "vtx-demo-modal-header"
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "vtx-demo-modal-title"
  }, title)), /*#__PURE__*/_react["default"].createElement("div", {
    className: "vtx-demo-modal-body"
  }, props.children), /*#__PURE__*/_react["default"].createElement("div", {
    className: "vtx-demo-modal-footer"
  }, footer ? footer : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_button["default"], null, "\u53D6\u6D88"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
    type: "primary",
    onClick: onOk ? onOk : null
  }, "\u786E\u5B9A"))));
}
var _default = exports["default"] = Modal;
//# sourceMappingURL=index.js.map
