synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
38 lines (37 loc) • 761 B
JavaScript
import { jsx as s } from "react/jsx-runtime";
import { ConfirmationDialog as u } from "../ConfirmationDialog/ConfirmationDialog.js";
function d(o) {
const {
title: n,
content: r,
confirmButtonText: t = "OK",
className: i,
open: a,
onConfirm: m,
confirmButtonColor: l = "primary",
confirmButtonDisabled: c,
onCancel: e,
onConfirmCallbackArgs: f
} = o;
return /* @__PURE__ */ s(
u,
{
open: a,
title: n,
content: r,
className: i,
confirmButtonProps: {
children: t,
color: l,
disabled: c
},
onCancel: e,
onConfirm: () => m(...f ?? [])
}
);
}
export {
d as WarningDialog,
d as default
};
//# sourceMappingURL=WarningDialog.js.map