synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
21 lines (20 loc) • 688 B
JavaScript
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