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 { View } from 'react-native';
import { SvgXml } from 'react-native-svg';
import { useAmityElement } from '../../hooks';
import { ComponentID, ElementID, PageID } from '../../enums';
import { useStyles } from './styles';
function CommunityPrivacyIcon({
  iconProps,
  pageId = PageID.WildCardPage,
  elementId = ElementID.close_button,
  componentId = ComponentID.WildCardComponent,
  ...props
}) {
  const {
    themeStyles,
    isExcluded,
    accessibilityId
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  const {
    theme,
    styles
  } = useStyles(themeStyles);
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(View, _extends({}, props, {
    testID: accessibilityId,
    style: [styles.container, props.style]
  }), /*#__PURE__*/React.createElement(SvgXml, _extends({
    width: 20,
    height: 20,
    color: theme.colors.base
  }, iconProps)));
}
export default CommunityPrivacyIcon;
//# sourceMappingURL=CommunityPrivacyIcon.js.map