"use strict";

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

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

var _precls = require("./precls");

require("./index.css");

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

function Loading(_ref) {
  var children = _ref.children,
      loading = _ref.loading;
  if (!loading) return children;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "".concat(_precls.precls, "__loading")
  });
}

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