'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');
var Progress_styles = require('../../Progress.styles.js');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

var React__default = /*#__PURE__*/_interopDefault(React);

var LabelWrapper = function LabelWrapper(_ref) {
  var labelIcon = _ref.labelIcon,
    _ref$labelTextPlaceme = _ref.labelTextPlacement,
    labelTextPlacement = _ref$labelTextPlaceme === void 0 ? 'right' : _ref$labelTextPlaceme,
    label = _ref.label;
  return /*#__PURE__*/React__default.default.createElement(Progress_styles.StyledLabelWrapper, null, labelTextPlacement === 'left' && label && /*#__PURE__*/React__default.default.createElement(Progress_styles.StyledLabel, null, label), labelIcon && /*#__PURE__*/React__default.default.createElement(Progress_styles.StyledLabelContent, null, labelIcon), labelTextPlacement === 'right' && label && /*#__PURE__*/React__default.default.createElement(Progress_styles.StyledLabel, null, label));
};

exports.LabelWrapper = LabelWrapper;
