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 { TouchableOpacity } from 'react-native';
import { useAmityElement } from '../../../../../hooks';
import { ComponentID, ElementID, PageID } from '../../../../../enums';
import { useStyles } from './styles';
import { Typography } from '../../../../../../core/components/Typography/Typography';
function CloseCommunity({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  elementId = ElementID.close_community,
  ...props
}) {
  const {
    themeStyles,
    isExcluded,
    accessibilityId,
    config
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  const {
    styles
  } = useStyles(themeStyles);
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(TouchableOpacity, _extends({
    style: styles.buttonContainer,
    testID: accessibilityId
  }, props), /*#__PURE__*/React.createElement(Typography.BodyBold, {
    style: styles.alertText
  }, config === null || config === void 0 ? void 0 : config.text));
}
export default CloseCommunity;
//# sourceMappingURL=CloseCommunity.js.map