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

60 lines (59 loc) 1.53 kB
import { jsx as o, Fragment as n, jsxs as c } from "react/jsx-runtime"; import { noop as m } from "lodash-es"; import { useRef as d } from "react"; import { displayToast as p } from "../ToastMessage/ToastMessage.js"; import { PortalAclEditor as f } from "./PortalAclEditor.js"; import { DialogBase as u } from "../DialogBase.js"; import { Button as e } from "@mui/material"; function P(i) { const { portalId: a, open: l, onUpdateSuccess: s = m, onClose: r } = i, t = d(null); return /* @__PURE__ */ o(n, { children: /* @__PURE__ */ o( u, { open: l, title: "Portal Sharing Settings", onCancel: r, maxWidth: "md", content: /* @__PURE__ */ o( f, { ref: t, portalId: a, onSaveComplete: () => { p( "Permissions were successfully saved to Synapse", "info" ), s(), r(); } } ), actions: /* @__PURE__ */ c(n, { children: [ /* @__PURE__ */ o( e, { variant: "outlined", onClick: () => { r(); }, children: "Cancel" } ), /* @__PURE__ */ o( e, { variant: "contained", color: "primary", onClick: () => { t.current?.save(); }, children: "Save" } ) ] }) } ) }); } export { P as default }; //# sourceMappingURL=PortalAclEditorModal.js.map