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 { useStyles } from './styles';
function ActionButton({
  fullWidth = false,
  pageId = PageID.WildCardPage,
  componentId = ComponentID.WildCardComponent,
  elementId = ElementID.WildCardElement,
  label,
  ...props
}) {
  const {
    themeStyles,
    isExcluded,
    accessibilityId,
    config
  } = useAmityElement({
    pageId,
    componentId,
    elementId
  });
  const {
    styles
  } = useStyles(themeStyles);
  if (isExcluded) return null;
  return /*#__PURE__*/React.createElement(Button, _extends({
    type: "primary",
    testID: accessibilityId,
    size: BUTTON_SIZE.LARGE,
    style: [fullWidth && styles.fullWidth, props.style]
  }, props), label ?? (config === null || config === void 0 ? void 0 : config.text));
}
export default ActionButton;
//# sourceMappingURL=ActionButton.js.map