UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

38 lines (37 loc) 761 B
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