"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 Container = function Container(_ref) {
  var animationDuration = _ref.animationDuration,
      children = _ref.children,
      isFinished = _ref.isFinished;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "loading_container",
    style: {
      opacity: isFinished ? 0 : 1,
      pointerEvents: 'none',
      transition: "opacity ".concat(animationDuration, "ms linear")
    }
  }, children);
};

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