git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: 8261134eb7daa7f16ad7f83ebb1549e60b37b70d

Files: 8261134eb7daa7f16ad7f83ebb1549e60b37b70d / components / message / author.js

335 bytesRaw
1const h = require('mutant/h')
2
3exports.needs = {
4 obs_about_name: 'first'
5}
6
7exports.gives = {
8 message_author: true
9}
10
11exports.create = function (api) {
12 return {
13 message_author
14 }
15
16 function message_author (msg) {
17 return h('div', {title: msg.value.author}, [
18 '@', api.obs_about_name(msg.value.author)
19 ])
20 }
21}
22

Built with git-ssb-web