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