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 { pinFill } from '../../../core/assets/icons';
import { useAmityElement } from '../../hooks';
import { ComponentID, ElementID, PageID } from '../../enums';
import { useStyles } from './styles';
function PinBadge({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  elementId = ElementID.pin_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: 30,
    height: 30,
    xml: pinFill(),
    testID: accessibilityId,
    color: theme.colors.primary
  }, iconProps));
}
export default PinBadge;
//# sourceMappingURL=PinBadge.js.map