"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.CoalitionProgressBar = void 0;
var _react = _interopRequireDefault(require("react"));
require("./CoalitionProgressBar.css");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const CoalitionProgressBar = _ref => {
  let {
    max,
    current,
    changeColor = false
  } = _ref;
  return /*#__PURE__*/_react.default.createElement("progress", {
    max: max,
    value: current,
    className: changeColor && current >= max ? "ready" : ""
  });
};
exports.CoalitionProgressBar = CoalitionProgressBar;