"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ShareButton = ShareButton;
var _reactNative = require("react-native");
var _reactNativeSvg = require("react-native-svg");
var _enums = require("../../enums");
var _hooks = require("../../hooks");
var _icons = require("../../../core/assets/icons");
function ShareButton({
  pageId,
  componentId = _enums.ComponentID.WildCardComponent,
  onPress,
  style
}) {
  const {
    themeStyles,
    isExcluded
  } = (0, _hooks.useAmityElement)({
    pageId,
    componentId,
    elementId: _enums.ElementID.share_button
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
    style: style,
    onPress: onPress
  }, /*#__PURE__*/React.createElement(_reactNativeSvg.SvgXml, {
    width: 20,
    height: 20,
    xml: (0, _icons.share)(),
    color: themeStyles.colors.baseShade2
  }));
}
//# sourceMappingURL=ShareButton.js.map