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';
import { pending } from '../../../../../../core/assets/icons';
export function PendingButton({
  pageId = PageID.user_profile_page,
  componentId = ComponentID.user_profile_header,
  elementId = ElementID.pending_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.LARGE,
    testID: accessibilityId,
    icon: pending()
  }, props), (config === null || config === void 0 ? void 0 : config.text) ?? 'Cancel request');
}
//# sourceMappingURL=PendingButton.js.map