import { TouchableOpacity } from 'react-native';
import { SvgXml } from 'react-native-svg';
import { ComponentID, ElementID } from '../../enums';
import { useAmityElement } from '../../hooks';
import { share } from '../../../core/assets/icons';
export function ShareButton({
  pageId,
  componentId = ComponentID.WildCardComponent,
  onPress,
  style
}) {
  const {
    themeStyles,
    isExcluded
  } = useAmityElement({
    pageId,
    componentId,
    elementId: ElementID.share_button
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(TouchableOpacity, {
    style: style,
    onPress: onPress
  }, /*#__PURE__*/React.createElement(SvgXml, {
    width: 20,
    height: 20,
    xml: share(),
    color: themeStyles.colors.baseShade2
  }));
}
//# sourceMappingURL=ShareButton.js.map