"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.UnblockButton = UnblockButton;
var _hooks = require("../../../../../hooks");
var _enums = require("../../../../../enums");
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); }
function UnblockButton({
  pageId = _enums.PageID.user_profile_page,
  componentId = _enums.ComponentID.user_profile_header,
  elementId = _enums.ElementID.unblock_user_button,
  ...props
}) {
  const {
    config,
    isExcluded,
    accessibilityId
  } = (0, _hooks.useAmityElement)({
    pageId,
    componentId,
    elementId
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(_Button.Button, _extends({
    type: "secondary",
    size: _Button.BUTTON_SIZE.LARGE,
    testID: accessibilityId,
    icon: (0, _icons.block)()
  }, props), (config === null || config === void 0 ? void 0 : config.text) ?? 'Unblock');
}
//# sourceMappingURL=UnblockButton.js.map