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

21 lines (20 loc) 688 B
import { jsx as r } from "react/jsx-runtime"; import { SEPERATOR as c } from "../../utils/SynapseConstants.js"; import { Menu as s, Divider as u, MenuItem as m } from "@mui/material"; function k(l) { const { menuActions: o = [], userProfile: i, open: n, anchorEl: t = null, onClose: f } = l; return /* @__PURE__ */ r(s, { open: n, anchorEl: t, onClose: f, children: o.map((e, a) => { const d = () => e.callback(i); return e.field === c ? /* @__PURE__ */ r(u, {}, `${e.field}_${a}`) : /* @__PURE__ */ r(m, { role: "menuitem", onClick: d, children: e.field }, e.field); }) }); } export { k as default }; //# sourceMappingURL=UserCardContextMenu.js.map