export var appendLoadingIcon = function appendLoadingIcon(props) {
  var htmlElement = props.htmlElement,
    loadingHeight = props.loadingHeight,
    loadingWidth = props.loadingWidth;
  var spinStyles = "\n    @keyframes loadingSpin {\n      from {\n        transform: rotate(0deg);\n      }\n      to {\n        transform: rotate(360deg);\n      }\n    }\n  ";
  var loadingImg = document.createElement('img');
  loadingImg.src = 'https://mdn.alipayobjects.com/huamei_saktgs/afts/img/A*vmqbT6W9g4oAAAAAAAAAAAAADviCAQ/original';
  loadingImg.classList.add('atom-loading');
  loadingImg.style.width = loadingWidth;
  loadingImg.style.height = loadingHeight;
  loadingImg.style.animation = 'loadingSpin 0.8s linear infinite';
  var styleElement = document.createElement('style');
  styleElement.textContent = spinStyles;
  document.head.appendChild(styleElement);
  if (htmlElement) {
    htmlElement.appendChild(loadingImg);
  }
};
export var isShowLoading = function isShowLoading(showLoading) {
  return showLoading = typeof showLoading === 'boolean' ? showLoading : true;
};