import a, { useContext as m } from "react";
import c from "../../button/button.mjs";
import { convertLegacyProps as i } from "../../button/buttonHelpers.mjs";
import { ModalContext as l } from "../context.mjs";
const s = () => {
  const {
    confirmLoading: o,
    okButtonProps: t,
    okType: e,
    okTextLocale: n,
    onOk: r
  } = m(l);
  return /* @__PURE__ */ a.createElement(c, Object.assign({}, i(e), {
    loading: o,
    onClick: r
  }, t), n);
}, d = s;
export {
  d as default
};
