()
| 69 | |
| 70 | class 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 | |
| 88 | class Mention extends Component { |
nothing calls this directly
no test coverage detected