UNPKG

@frontify/fondue

Version:
19 lines (18 loc) 752 B
import { jsxs as c } from "react/jsx-runtime"; import { MarkupElementNodeComponent as a } from "./MarkupElementNode.es.js"; import { combineMentionableKeyWith as d } from "../helpers/mapMentionable.es.js"; import { renderMentionLabel as p } from "../helpers/renderMentionLabel.es.js"; const f = (i) => ( // eslint-disable-next-line react/display-name (r) => { const { element: o, children: t } = r, n = d(o == null ? void 0 : o.category, String(o == null ? void 0 : o.id)); return /* @__PURE__ */ c(a, { category: o == null ? void 0 : o.category, ...r, children: [ p(i, n, String(o == null ? void 0 : o.id)), t ] }); } ); export { f as MentionMarkupElementNode }; //# sourceMappingURL=MentionMarkupElementNode.es.js.map