import { jsx as o, jsxs as f } from "react/jsx-runtime";
import { noop as t } from "es-toolkit/function";
import i from "../button/Button.js";
import C from "./Dialog.js";
const x = (r) => {
  const {
    content: e,
    onClickCancel: n = t,
    cancelButtonText: a,
    onClickConfirm: l = t,
    confirmButtonText: s,
    disableConfirm: c,
    ...m
  } = r;
  return /* @__PURE__ */ o(
    C,
    {
      ...m,
      body: e,
      footer: /* @__PURE__ */ f("div", { className: "btn-toolbar", children: [
        /* @__PURE__ */ o(i, { className: "CancelButton", onClick: n, children: a }),
        /* @__PURE__ */ o(i, { bsStyle: "primary", className: "ConfirmationButton", onClick: l, disabled: c, children: s })
      ] }),
      onClose: n,
      showCloseButton: !1,
      className: "confirmation-dialog",
      disableEsc: !0
    }
  );
};
export {
  x as default
};
//# sourceMappingURL=ConfirmationDialog.js.map
