import { _ as _extends } from '../extends-e61fd370.js';
import React__default from 'react';
import Button from '../button/index.js';
import { useFormContext } from '../use-form/index.js';
import '../defineProperty-18999f8e.js';
import '../objectWithoutProperties-72d23964.js';
import 'prop-types';
import '@reach/visually-hidden';
import '../ck-icon/index.js';
import 'classnames';
import '../ck-icon/assets/icon-map/index.js';
import '../icon/index.js';
import '@fortawesome/react-fontawesome';
import '../icon/icons.js';
import '../icon/library.js';
import '@fortawesome/fontawesome-svg-core';
import '@fortawesome/pro-solid-svg-icons';
import '@fortawesome/pro-light-svg-icons';
import '@fortawesome/free-brands-svg-icons';
import '../slicedToArray-5b664d46.js';
import '../button/button-group.js';
import '../index-81a9bdac.js';
import '../typeof-6c6d8d7a.js';
import '../auto-id.esm-2b54f757.js';
import '../utils.esm-514fad91.js';
import '../warning-ed2bf294.js';
import '../_commonjsHelpers-57e89916.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 };
