"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));
var _react = _interopRequireDefault(require("react"));
var _mobxReact = require("mobx-react");
require("./index.less");
var _class;
var BottomBar = exports["default"] = (0, _mobxReact.observer)(_class = /*#__PURE__*/function (_React$Component) {
  (0, _inheritsLoose2["default"])(BottomBar, _React$Component);
  function BottomBar() {
    return _React$Component.apply(this, arguments) || this;
  }
  var _proto = BottomBar.prototype;
  _proto.render = function render() {
    if (this.props.items.length) {
      return /*#__PURE__*/_react["default"].createElement("div", {
        className: "bottomBar"
      }, this.props.items.map(function (item) {
        return /*#__PURE__*/_react["default"].createElement("div", {
          className: "item"
        }, item.content);
      }));
    } else {
      return null;
    }
  };
  return BottomBar;
}(_react["default"].Component)) || _class;