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 { SvgXml } from 'react-native-svg';
import { featured } from '../../../core/assets/icons';
import { useAmityElement } from '../../hooks';
import { ComponentID, ElementID, PageID } from '../../enums';
import { useStyles } from './styles';
function AnnouncementBadge({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  elementId = ElementID.announcement_badge,
  iconProps
}) {
  const {
    themeStyles,
    isExcluded,
    accessibilityId
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  const {
    theme
  } = useStyles(themeStyles);
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(SvgXml, _extends({
    width: 73,
    height: 26,
    testID: accessibilityId,
    xml: featured({
      color: theme.colors.secondary,
      backgroundColor: theme.colors.secondaryShade4
    })
  }, iconProps));
}
export default AnnouncementBadge;
//# sourceMappingURL=AnnouncementBadge.js.map