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 { moderator } from '../../../core/assets/icons';
import { useAmityElement } from '../../hooks';
import { ComponentID, ElementID, PageID } from '../../enums';
import { useStyles } from './styles';
function ModeratorBadge({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  elementId = ElementID.moderator_badge,
  iconProps,
  style,
  ...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, {
    style: [styles.container, style],
    testID: accessibilityId
  }), /*#__PURE__*/React.createElement(SvgXml, _extends({
    width: "12",
    height: "12",
    xml: moderator(),
    color: theme.colors.primary
  }, iconProps)));
}
export default ModeratorBadge;
//# sourceMappingURL=ModeratorBadge.js.map