Files: 09c0a2e49ccc68a4cdc3a98da00657c1aff6158b / message / html / author.js
387 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('message.html.author') |
5 | |
6 | exports.needs = nest('about.html.link', 'first') |
7 | |
8 | exports.create = function (api) { |
9 | return nest('message.html.author', messageAuthor) |
10 | |
11 | function messageAuthor (msg) { |
12 | return h('div', {title: msg.value.author}, [ |
13 | api.about.html.link(msg.value.author) |
14 | ]) |
15 | } |
16 | } |
17 | |
18 |
Built with git-ssb-web