import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import React from 'react';
import { bizCssPrefix } from "../../variables";
import "./index.scss";
//表单头部工具栏
var FormHeaderBox = /*#__PURE__*/function (_React$Component) {
  _inheritsLoose(FormHeaderBox, _React$Component);
  function FormHeaderBox(props) {
    var _this;
    _this = _React$Component.call(this, props) || this;
    _this._renderChildren = function () {
      var children = _this.props.children;
      return React.Children.map(children, function (child, index) {
        return /*#__PURE__*/React.createElement("div", {
          className: 'box-item' + (index + 1)
        }, " ", /*#__PURE__*/React.cloneElement(child));
      });
    };
    return _this;
  }
  var _proto = FormHeaderBox.prototype;
  _proto.render = function render() {
    var style = this.props.style;
    return /*#__PURE__*/React.createElement("div", {
      className: bizCssPrefix + '-form-header-box',
      style: style
    }, this._renderChildren());
  };
  return FormHeaderBox;
}(React.Component);
FormHeaderBox.displayName = "FormHeaderBox";
export default FormHeaderBox;