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); }
import { memo } from 'react';
import { Typography } from '../../../core/components/Typography/Typography';
import { StyleSheet } from 'react-native';
import { ComponentID, ElementID, PageID } from '../../enums/enumUIKitID';
import { useAmityElement } from '../../hooks';
const TitleElement = ({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  style,
  ...props
}) => {
  const elementId = ElementID.title;
  const {
    isExcluded,
    accessibilityId,
    config,
    themeStyles
  } = useAmityElement({
    pageId: pageId,
    componentId: componentId,
    elementId
  });
  const styles = StyleSheet.create({
    titleText: {
      color: themeStyles.colors.baseShade3
    }
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(Typography.BodyBold, _extends({
    testID: accessibilityId,
    accessibilityLabel: accessibilityId,
    style: [styles.titleText, style]
  }, props), config.text);
};
export default /*#__PURE__*/memo(TitleElement);
//# sourceMappingURL=TitleElement.js.map