"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.MobilePopupFooter = void 0;var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _react = _interopRequireDefault(require("react"));


var _ThemeContext = require("../../../lib/theming/ThemeContext");

var _MobilePopupFooter2 = require("./MobilePopupFooter.styles");var

MobilePopupFooter = exports.MobilePopupFooter = /*#__PURE__*/function (_React$Component) {function MobilePopupFooter() {return _React$Component.apply(this, arguments) || this;}(0, _inheritsLoose2.default)(MobilePopupFooter, _React$Component);var _proto = MobilePopupFooter.prototype;_proto.




  render = function render() {var _this = this;
    return /*#__PURE__*/(
      _react.default.createElement(_ThemeContext.ThemeContext.Consumer, null,
      function (theme) {
        _this.theme = theme;
        return _this.renderMain();
      }
      ));

  };_proto.

  renderMain = function renderMain() {
    var children = this.props.children;

    if (!children || ! /*#__PURE__*/_react.default.isValidElement(children)) {
      return null;
    }

    return /*#__PURE__*/_react.default.createElement("div", { className: _MobilePopupFooter2.jsStyles.root(this.theme) }, children);
  };return MobilePopupFooter;}(_react.default.Component);MobilePopupFooter.__KONTUR_REACT_UI__ = 'MobileMenuFooter';