"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _enums = require("../../../../../enums");
var _Typography = require("../../../../../../core/components/Typography/Typography");
var _styles = require("./styles");
var _hooks = require("../../../../../hooks");
var _reactNative = require("react-native");
const TrendingCommunityTitleComponent = ({
  pageId = _enums.PageID.WildCardPage
}) => {
  const {
    isExcluded,
    accessibilityId,
    themeStyles,
    config
  } = (0, _hooks.useAmityElement)({
    pageId,
    componentId: _enums.ComponentID.WildCardComponent,
    elementId: _enums.ElementID.explore_trending_title
  });
  const styles = (0, _styles.useStyles)(themeStyles);
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(_reactNative.View, {
    style: styles.titleContainer
  }, /*#__PURE__*/React.createElement(_Typography.Typography.TitleBold, {
    testID: accessibilityId,
    style: styles.titleText
  }, (config === null || config === void 0 ? void 0 : config.text) || 'Trending now'));
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(TrendingCommunityTitleComponent);
//# sourceMappingURL=TrendingCommunityTitle.js.map