"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = require("react");
var _enumUIKitID = require("../../enums/enumUIKitID");
var _hooks = require("../../hooks");
var _Button = require("../../components/Button/Button");
var _icons = require("../../../core/assets/icons");
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const ExploreCreateCommunity = ({
  pageId = _enumUIKitID.PageID.WildCardPage,
  componentId = _enumUIKitID.ComponentID.WildCardComponent,
  ...props
}) => {
  const {
    config,
    accessibilityId,
    isExcluded
  } = (0, _hooks.useAmityElement)({
    pageId,
    componentId,
    elementId: _enumUIKitID.ElementID.explore_create_community
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(_Button.Button, _extends({
    testID: accessibilityId,
    type: "primary",
    icon: (0, _icons.plus)()
  }, props), (config === null || config === void 0 ? void 0 : config.text) || 'Create community');
};
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(ExploreCreateCommunity);
//# sourceMappingURL=ExploreCreateCommunity.js.map