"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _icons = require("@ant-design/icons");
var _classnames = _interopRequireDefault(require("classnames"));
require("./index.less");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
 * @returns 分析弹窗
 */

function Modal(props) {
  var title = props.title,
    onClose = props.onClose,
    width = props.width,
    _props$placement = props.placement,
    placement = _props$placement === void 0 ? 'left' : _props$placement;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])('cs-map-tools-modal', {
      'modal-left': placement === 'right'
    }),
    style: {
      width: width
    }
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])('cs-map-tools-modal-title')
  }, /*#__PURE__*/_react["default"].createElement("div", null, title), /*#__PURE__*/_react["default"].createElement(_icons.CloseOutlined, {
    width: 16,
    height: 16,
    onClick: onClose
  })), /*#__PURE__*/_react["default"].createElement("div", {
    className: (0, _classnames["default"])('cs-map-tools-modal-content')
  }, props.children));
}
var _default = exports["default"] = Modal;
//# sourceMappingURL=index.js.map
