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

45 lines (44 loc) 1.03 kB
import { jsx as r, Fragment as l } from "react/jsx-runtime"; import { useCallback as m } from "react"; import { DialogBase as p } from "../DialogBase.js"; import { TYPE_FILTER as s } from "@sage-bionetworks/synapse-types"; import u from "../UserSearchBox/UserSearchBox.js"; function v({ show: i, onClose: o, handleUserTag: e }) { const a = m( (n, t) => { n && t && e(t.userName), o(); }, [o, e] ); return /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r( p, { open: i, onCancel: o, title: "Find User or Team", content: /* @__PURE__ */ r( u, { placeholder: "Search for a user or team name", onChange: a, typeFilter: s.ALL, autoFocus: !0 } ), sx: { ".MuiDialog-paperFullWidth": { overflowY: "visible", ".MuiDialogContent-root": { overflowY: "visible" } } } } ) }); } export { v as UserMentionModal }; //# sourceMappingURL=UserMentionModal.js.map