"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _Typography = require("../../../core/components/Typography/Typography");
var _reactNative = require("react-native");
var _enumUIKitID = require("../../enums/enumUIKitID");
var _hooks = require("../../hooks");
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const TitleElement = ({
  pageId = _enumUIKitID.PageID.WildCardPage,
  componentId = _enumUIKitID.ComponentID.WildCardComponent,
  style,
  ...props
}) => {
  const elementId = _enumUIKitID.ElementID.title;
  const {
    isExcluded,
    accessibilityId,
    config,
    themeStyles
  } = (0, _hooks.useAmityElement)({
    pageId: pageId,
    componentId: componentId,
    elementId
  });
  const styles = _reactNative.StyleSheet.create({
    titleText: {
      color: themeStyles.colors.baseShade3
    }
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(_Typography.Typography.BodyBold, _extends({
    testID: accessibilityId,
    accessibilityLabel: accessibilityId,
    style: [styles.titleText, style]
  }, props), config.text);
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(TitleElement);
//# sourceMappingURL=TitleElement.js.map