import React from 'react';
import { observer } from 'mobx-react-lite';
import { Breadcrumb } from '@choerodon/boot';
import { inject } from 'mobx-react';
import { useCodeManagerStore } from "../stores";
import "./index.less";
var CodeManagerHeader = inject('AppState')(observer(function (props) {
  var _useCodeManagerStore = useCodeManagerStore(),
      prefixCls = _useCodeManagerStore.prefixCls,
      getNoHeader = _useCodeManagerStore.codeManagerStore.getNoHeader;

  var breadCrumb = props.breadCrumb;
  return /*#__PURE__*/React.createElement("div", {
    className: "c7ncd-code-manager"
  }, !getNoHeader && /*#__PURE__*/React.createElement("div", {
    className: "".concat(prefixCls, "-header-placeholder")
  }), /*#__PURE__*/React.createElement(Breadcrumb, Object.assign({
    className: "".concat(prefixCls, "-header-no-bottom")
  }, breadCrumb)));
}));
export default CodeManagerHeader;