"use strict";

var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];

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

var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));

var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));

var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));

var _react = _interopRequireWildcard(require("react"));

var Content = /*#__PURE__*/function (_Component) {
  (0, _inherits2["default"])(Content, _Component);

  var _super = (0, _createSuper2["default"])(Content);

  function Content() {
    (0, _classCallCheck2["default"])(this, Content);
    return _super.apply(this, arguments);
  }

  (0, _createClass2["default"])(Content, [{
    key: "componentDidUpdate",
    value: function componentDidUpdate() {
      var trigger = this.props.trigger;

      if (trigger) {
        trigger.forcePopupAlign();
      }
    }
  }, {
    key: "render",
    value: function render() {
      var _this$props = this.props,
          overlay = _this$props.overlay,
          prefixCls = _this$props.prefixCls,
          id = _this$props.id,
          theme = _this$props.theme;
      return /*#__PURE__*/_react["default"].createElement("div", {
        className: "".concat(prefixCls, "-inner ").concat(prefixCls, "-inner-").concat(theme),
        id: id
      }, typeof overlay === 'function' ? overlay() : overlay);
    }
  }]);
  return Content;
}(_react.Component);

exports["default"] = Content;
//# sourceMappingURL=Content.js.map
