import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
import _createClass from "@babel/runtime/helpers/createClass";
import _inherits from "@babel/runtime/helpers/inherits";
import _createSuper from "@babel/runtime/helpers/createSuper";
import React, { Component } from 'react';

var Content = /*#__PURE__*/function (_Component) {
  _inherits(Content, _Component);

  var _super = _createSuper(Content);

  function Content() {
    _classCallCheck(this, Content);

    return _super.apply(this, arguments);
  }

  _createClass(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.createElement("div", {
        className: "".concat(prefixCls, "-inner ").concat(prefixCls, "-inner-").concat(theme),
        id: id
      }, typeof overlay === 'function' ? overlay() : overlay);
    }
  }]);

  return Content;
}(Component);

export { Content as default };
//# sourceMappingURL=Content.js.map
