MCPcopy Create free account
hub / github.com/alephdata/aleph / render

Method render

ui/src/components/common/Mention.jsx:71–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70class MentionList extends Component {
71 render() {
72 const { prop, values, separator = ' · ', missing = '—' } = this.props;
73 const vals = ensureArray(values).map((value) => (
74 <MentionLink
75 key={value.id || value}
76 prop={prop}
77 value={value}
78 {...this.props}
79 />
80 ));
81 if (!vals.length) {
82 return <span className="no-value">{missing}</span>;
83 }
84 return <span>{wordList(vals, separator)}</span>;
85 }
86}
87
88class Mention extends Component {

Callers

nothing calls this directly

Calls 2

ensureArrayFunction · 0.50
wordListFunction · 0.50

Tested by

no test coverage detected