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.55 kB
import { jsx as o, Fragment as e, 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 { OAuthClientAclEditor as u } from "./OAuthClientAclEditor.js"; import { DialogBase as f } from "../DialogBase.js"; import { Button as r } from "@mui/material"; function y(i) { const { clientId: l, open: a, onUpdateSuccess: s = m, onClose: t } = i, n = d(null); return /* @__PURE__ */ o(e, { children: /* @__PURE__ */ o( f, { open: a, title: "OAuth Client Sharing Settings", onCancel: t, maxWidth: "md", content: /* @__PURE__ */ o( u, { ref: n, clientId: l, onSaveComplete: () => { p( "Permissions were successfully saved to Synapse", "info" ), s(), t(); } } ), actions: /* @__PURE__ */ c(e, { children: [ /* @__PURE__ */ o( r, { variant: "outlined", onClick: () => { t(); }, children: "Cancel" } ), /* @__PURE__ */ o( r, { variant: "contained", color: "primary", onClick: () => { n.current?.save(); }, children: "Save" } ) ] }) } ) }); } export { y as default }; //# sourceMappingURL=OAuthAclEditorModal.js.map