import { _ as _extends } from '../extends-C4cduGrv.js';
import React__default from 'react';
import { B as Button } from '../index-Cqcn5RnV.js';
import { useFormContext } from '../use-form/index.js';
import '../defineProperty-CEd-kZQW.js';
import '../slicedToArray-BB-AwwkK.js';
import '../objectWithoutProperties-TXwlfNxG.js';
import '../typeof-CgC7Bq6K.js';
import '../toConsumableArray-dKQYsfpV.js';
import '../index-qSfOyGhk.js';
import 'react-dom';
import 'prop-types';
import 'classnames';
import '../icon/assets/icon-map/index.js';
import '../social-icon/index.js';
import '@fortawesome/react-fontawesome';
import '../social-icon/icons.js';
import '../social-icon/library.js';
import '@fortawesome/fontawesome-svg-core';
import '@fortawesome/free-solid-svg-icons';
import '@fortawesome/free-brands-svg-icons';
import '../tooltip/index.js';
import '../auto-id.esm-Cly76abB.js';
import '../utils.esm-CKyxlHOy.js';
import '../warning-s9zGJbnw.js';
import '../portal.esm-CuKGPwhL.js';
import '@reach/visually-hidden';
import '../portal/index.js';
import '../use-rerender-once/index.js';
import '../use-force-update/index.js';
import '../button/button-group.js';
import '../inject-css-BqVV5N0s.js';
import '../_commonjsHelpers-_1FafXWI.js';
import '../use-progress/index.js';
import '../use-trailing-debounce/index.js';

function SubmitButton(props) {
  var form = useFormContext();
  return /*#__PURE__*/React__default.createElement(Button, _extends({
    is: "primary",
    type: "submit",
    disabled: form.status === "loading"
  }, props));
}

export { SubmitButton as default };
