'use strict';

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

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _classnames = require('classnames');

var _classnames2 = _interopRequireDefault(_classnames);

var _style = require('./style.scss');

var _style2 = _interopRequireDefault(_style);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ProgressBarLabel = function ProgressBarLabel(props) {
  return _react2.default.createElement(
    'label',
    { className: _style2.default.label },
    props.text,
    props.showPercentage ? _react2.default.createElement(
      'span',
      { className: _style2.default.percentage },
      '(',
      props.percentage,
      '%)'
    ) : null
  );
};

ProgressBarLabel.propTypes = {
  text: _react2.default.PropTypes.string,
  percentage: _react2.default.PropTypes.number,
  showPercentage: _react2.default.PropTypes.bool
};

exports.default = ProgressBarLabel;