import "choerodon-ui/lib/progress/style";
import _Progress from "@hzero-front-ui/c7n-ui/lib/Progress";
import React from 'react';
import classNames from 'classnames';
import "./index.less";

function Loading(_ref) {
  var _ref$display = _ref.display,
      display = _ref$display === void 0 ? false : _ref$display;
  var spinClass = classNames({
    'c7ncd-spin-hidden': !display,
    'c7ncd-spin-container': display
  });
  return /*#__PURE__*/React.createElement("div", {
    className: spinClass
  }, /*#__PURE__*/React.createElement(_Progress, {
    type: "loading"
  }));
}

export default Loading;