"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
require("./index.less");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _icons = require("@ant-design/icons");
var _tooltip = _interopRequireDefault(require("antd/lib/tooltip"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var ResultTitle = function ResultTitle(_ref) {
  var title = _ref.title,
    rightContent = _ref.rightContent,
    question = _ref.question,
    _ref$noline = _ref.noline,
    noline = _ref$noline === void 0 ? false : _ref$noline;
  return /*#__PURE__*/_react["default"].createElement("div", {
    className: "ol-map-analysis-result-title-wrap ".concat(!noline ? '' : 'ol-map-analysis-result-title-wrap-noline')
  }, /*#__PURE__*/_react["default"].createElement("span", {
    className: "ol-map-analysis-result-title-wrap-title"
  }, title, question && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
    title: question
  }, /*#__PURE__*/_react["default"].createElement(_icons.QuestionCircleOutlined, null))), rightContent);
};
ResultTitle.propTypes = {
  title: _propTypes["default"].string,
  rightContent: _propTypes["default"].element,
  question: _propTypes["default"].element,
  noline: _propTypes["default"].bool
};
var _default = exports["default"] = ResultTitle;
//# sourceMappingURL=index.js.map
