"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _react = require("react");
var _enums = require("../../../../../enums");
var _useConfig = _interopRequireDefault(require("../../../../../hooks/useConfig"));
var _hooks = require("../../../../../hooks");
var _styles = require("./styles/styles");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const ExploreCommunityButton = ({
  onPressExploreCommunity
}) => {
  const {
    excludes
  } = (0, _useConfig.default)();
  const styles = (0, _styles.useStyles)();
  const [text] = (0, _hooks.useUiKitConfig)({
    keys: ['text'],
    page: _enums.PageID.social_home_page,
    component: _enums.ComponentID.empty_newsfeed,
    element: _enums.ElementID.explore_communities_button
  });
  const icon = (0, _hooks.useConfigImageUri)({
    configKey: 'icon',
    configPath: {
      page: _enums.PageID.social_home_page,
      component: _enums.ComponentID.empty_newsfeed,
      element: _enums.ElementID.explore_communities_button
    }
  });
  if (excludes.includes('social_home_page/empty_newsfeed/explore_communitties_button')) return null;
  return /*#__PURE__*/React.createElement(_reactNative.TouchableOpacity, {
    style: styles.exploreBtn,
    onPress: () => onPressExploreCommunity && onPressExploreCommunity()
  }, /*#__PURE__*/React.createElement(_reactNative.Image, {
    source: icon,
    style: styles.exploreIcon,
    resizeMode: "contain"
  }), /*#__PURE__*/React.createElement(_reactNative.Text, {
    style: styles.exploreText
  }, text));
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(ExploreCommunityButton);
//# sourceMappingURL=ExploreCommunityButton.js.map