import React__default from 'react';
import SearchInput from '../SearchInput/index.js';
import '../_rollupPluginBabelHelpers-736b301a.js';
import 'antd';
import 'lodash';
import '../IconFont/index.js';
import '@zenview/micro-utils';

function TreeTitle({
  title,
  inputPlaceholder,
  onChange,
  hasInput = true,
  titleExt
}) {
  if (!title) {
    return null;
  }
  return /*#__PURE__*/React__default.createElement("div", {
    className: "lm-c-tree-title-part"
  }, /*#__PURE__*/React__default.createElement("span", {
    className: 'title-text'
  }, title), hasInput && /*#__PURE__*/React__default.createElement(SearchInput, {
    className: "input-keword",
    placeholder: inputPlaceholder,
    onChange: onChange
  }), titleExt);
}

export { TreeTitle as default };
//# sourceMappingURL=index.js.map
