import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import * as React from "react";
import { connect } from "react-redux";
import styled from "styled-components";
var LabelContainer = /*#__PURE__*/styled('div', {
  target: "e121j83y0",
  label: "LabelContainer"
})({
  position: "relative",
  display: 'inline-block'
});

var LabelRender = function LabelRender(_ref) {
  var label = _ref.label,
      formElement = _ref.formElement;
  var _formElement$data$for = formElement.data.formSettings,
      formSettings = _formElement$data$for === void 0 ? {} : _formElement$data$for;
  var styleProps = formSettings.labelWidth ? {
    width: formSettings.labelWidth
  } : {};
  return /*#__PURE__*/React.createElement(LabelContainer, {
    className: "formLabelRender",
    style: _objectSpread({}, styleProps)
  }, label);
};

export default connect(function () {
  return {};
})( /*#__PURE__*/React.memo(LabelRender));
//# sourceMappingURL=LabelRender.js.map