import "choerodon-ui/lib/progress/style";
import _Progress from "@hzero-front-ui/c7n-ui/lib/Progress";
import React from 'react';
import "./index.less";
export var TitleWrap = function TitleWrap(_ref) {
  var children = _ref.children;
  return /*#__PURE__*/React.createElement("div", {
    className: "c7ncd-page-title"
  }, children);
};
export var FailBack = function FailBack() {
  return /*#__PURE__*/React.createElement(TitleWrap, null, /*#__PURE__*/React.createElement(_Progress, {
    type: "loading",
    size: "small"
  }));
};
export default function PrefixTitle(_ref2) {
  var children = _ref2.children;
  return children ? /*#__PURE__*/React.createElement(FailBack, null) : /*#__PURE__*/React.createElement(TitleWrap, null, children);
}