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); }
import { memo } from 'react';
import { ComponentID, ElementID, PageID } from '../../enums/enumUIKitID';
import { useAmityElement } from '../../hooks';
import { Button } from '../../components/Button/Button';
import { plus } from '../../../core/assets/icons';
const ExploreCreateCommunity = ({
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  ...props
}) => {
  const {
    config,
    accessibilityId,
    isExcluded
  } = useAmityElement({
    pageId,
    componentId,
    elementId: ElementID.explore_create_community
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(Button, _extends({
    testID: accessibilityId,
    type: "primary",
    icon: plus()
  }, props), (config === null || config === void 0 ? void 0 : config.text) || 'Create community');
};
export default /*#__PURE__*/memo(ExploreCreateCommunity);
//# sourceMappingURL=ExploreCreateCommunity.js.map