"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

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

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

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

var _components = require("@alicloudfe/components");

var _classnames = _interopRequireDefault(require("classnames"));

var indicator8 = /*#__PURE__*/_react.default.createElement("div", {
  className: "load-container load8"
}, /*#__PURE__*/_react.default.createElement("div", {
  className: "loader"
}));

var BDesignLoading = function BDesignLoading(props) {
  var className = props.className,
      size = props.size,
      rest = (0, _objectWithoutProperties2.default)(props, ["className", "size"]);
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_components.Loading, (0, _extends2.default)({
    indicator: indicator8,
    className: (0, _classnames.default)(className, {
      'next-loading-small': size === 'small'
    })
  }, rest)));
};

var _default = BDesignLoading;
exports.default = _default;