import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
var _class;
import React from 'react';
import { observer } from 'mobx-react';
import './index.less';
var BottomBar = observer(_class = /*#__PURE__*/function (_React$Component) {
  _inheritsLoose(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.createElement("div", {
        className: "bottomBar"
      }, this.props.items.map(function (item) {
        return /*#__PURE__*/React.createElement("div", {
          className: "item"
        }, item.content);
      }));
    } else {
      return null;
    }
  };
  return BottomBar;
}(React.Component)) || _class;
export { BottomBar as default };