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