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 { useAmityElement } from '../../../../../hooks';
import { ComponentID, ElementID, PageID } from '../../../../../enums';
import { Button, BUTTON_SIZE } from '../../../../../components/Button/Button';
export function UnblockUserButton({
  pageId = PageID.blocked_users_page,
  componentId = ComponentID.WildCardComponent,
  elementId = ElementID.unblock_user_button,
  ...props
}) {
  const {
    config,
    isExcluded,
    accessibilityId
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(Button, _extends({
    type: "secondary",
    size: BUTTON_SIZE.SMALL,
    testID: accessibilityId
  }, props), (config === null || config === void 0 ? void 0 : config.text) ?? 'Unblock');
}
//# sourceMappingURL=UnblockUserButton.js.map