"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _enums = require("../../enums");
var _hooks = require("../../hooks");
var _reactNative = require("react-native");
const CommunityPrivateBadge = ({
  pageId = _enums.PageID.WildCardPage,
  componentId = _enums.ComponentID.WildCardComponent
}) => {
  const elementId = _enums.ElementID.community_private_badge;
  const {
    isExcluded,
    accessibilityId,
    themeStyles
  } = (0, _hooks.useAmityElement)({
    pageId,
    componentId,
    elementId
  });
  const {
    uri
  } = (0, _hooks.useConfigImageUri)({
    configPath: {
      page: pageId,
      component: componentId,
      element: elementId
    },
    configKey: 'image'
  });
  const styles = _reactNative.StyleSheet.create({
    image: {
      width: 24,
      height: 24,
      tintColor: themeStyles.colors.base
    }
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(_reactNative.Image, {
    testID: accessibilityId,
    source: {
      uri
    },
    resizeMode: "cover",
    style: styles.image
  });
};
var _default = exports.default = CommunityPrivateBadge;
//# sourceMappingURL=CommunityPrivateBadge.js.map