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

function Title({
  className = '',
  icon,
  title,
  style,
  children
}) {
  return /*#__PURE__*/React__default.createElement(BetweenBox, {
    className: `lm-title-wrapper ${className}`,
    style: style,
    left: /*#__PURE__*/React__default.createElement("span", {
      className: "title-container"
    }, icon && /*#__PURE__*/React__default.createElement(IconFont, {
      className: "icon-title",
      type: icon
    }), title),
    right: /*#__PURE__*/React__default.createElement("span", {
      className: "extra-container"
    }, children)
  });
}

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