"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TitleElement = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _titleElement = _interopRequireDefault(require("../view/FlexibleCard/components/elements/title-element"));
/**
 * Public API — exported externally. Do not add props without external support intent.
 */

var TitleElement = exports.TitleElement = function TitleElement(props) {
  return /*#__PURE__*/_react.default.createElement(_titleElement.default, (0, _extends2.default)({
    hideTooltip: props === null || props === void 0 ? void 0 : props.hideTooltip,
    maxLines: props === null || props === void 0 ? void 0 : props.maxLines,
    target: props === null || props === void 0 ? void 0 : props.target,
    theme: props === null || props === void 0 ? void 0 : props.theme,
    size: props === null || props === void 0 ? void 0 : props.size,
    testId: props === null || props === void 0 ? void 0 : props.testId
  }, props !== null && props !== void 0 && props.text ? {
    text: props === null || props === void 0 ? void 0 : props.text
  } : undefined));
};