"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

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

var Bar = function Bar(_ref) {
  var animationDuration = _ref.animationDuration,
      progress = _ref.progress;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "loading_bar_parent",
    style: {
      marginLeft: "".concat((-1 + progress) * 100, "%"),
      transition: "margin-left ".concat(animationDuration, "ms linear")
    }
  }, /*#__PURE__*/_react["default"].createElement("div", {
    className: "loading_bar_children"
  }));
};

var _default = Bar;
exports["default"] = _default;