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 { plus } from '../../../../../../core/assets/icons';
export function FollowButton({
  pageId = PageID.user_profile_page,
  componentId = ComponentID.user_profile_header,
  elementId = ElementID.follow_user_button,
  ...props
}) {
  const {
    config,
    isExcluded,
    accessibilityId
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(Button, _extends({
    type: "primary",
    size: BUTTON_SIZE.LARGE,
    testID: accessibilityId,
    icon: plus()
  }, props), (config === null || config === void 0 ? void 0 : config.text) ?? 'Follow');
}
//# sourceMappingURL=FollowButton.js.map