synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
35 lines (34 loc) • 1.26 kB
JavaScript
import { jsxs as e, jsx as o } from "react/jsx-runtime";
import { HelpPopover as a } from "../../../components/HelpPopover/HelpPopover.js";
import s from "../../../components/IconSvg/IconSvg.js";
import { Dialog as d, DialogTitle as p, Stack as x, Box as g, IconButton as m, DialogContent as h, DialogActions as f, Button as r } from "@mui/material";
const B = (t) => {
const { title: i, content: l, helpText: n, ...c } = t;
return /* @__PURE__ */ e(d, { ...c, children: [
/* @__PURE__ */ o(p, { children: /* @__PURE__ */ e(
x,
{
direction: "row",
sx: {
alignItems: "center",
gap: "5px"
},
children: [
i,
n && /* @__PURE__ */ o(a, { markdownText: n }),
/* @__PURE__ */ o(g, { sx: { flexGrow: 1 } }),
/* @__PURE__ */ o(m, { children: /* @__PURE__ */ o(s, { icon: "close", wrap: !1, sx: { color: "grey.700" } }) })
]
}
) }),
/* @__PURE__ */ o(h, { children: l }),
/* @__PURE__ */ e(f, { children: [
/* @__PURE__ */ o(r, { variant: "outlined", children: "Cancel" }),
/* @__PURE__ */ o(r, { variant: "contained", children: "OK" })
] })
] });
};
export {
B as Dialog
};
//# sourceMappingURL=MuiDialog.js.map