taxonium-component
Version:
React component for exploring large phylogenetic trees in the browser
17 lines (16 loc) • 1.1 kB
JavaScript
import { jsxs as o, jsx as n, Fragment as m } from "react/jsx-runtime";
import { o as h, a as u, D as C, an as p, d as g, B as l } from "./JBrowsePanel-BNE3gNW1.js";
import { D as c } from "./DialogContentText-CyyKmj20.js";
import { L as f } from "./ListItem-hho_hfbE.js";
const B = h(function({ modalInfo: a = {}, onClose: e }) {
const { name: s, dereferenceTypeCount: t, safelyBreakConnection: i } = a;
return o(u.Dialog, { open: !0, maxWidth: "lg", title: `Close connection "${s}"`, onClose: e, children: [o(C, { children: [t ? o(m, { children: [n(c, { children: "Closing this connection will close:" }), n(p, { children: Object.entries(t).map(([r, d]) => n(f, { children: `${d} ${r}` }, r)) })] }) : null, n(c, { children: "Are you sure you want to close this connection?" })] }), o(g, { children: [n(l, { onClick: () => {
e();
}, color: "primary", children: "Cancel" }), n(l, { variant: "contained", onClick: () => {
i == null || i(), e();
}, color: "primary", children: "OK" })] })] });
});
export {
B as default
};
//# sourceMappingURL=CloseConnectionDialog-CW8-HaVc.js.map