Files: 1399cedf6a9c2dcf4b6662bdeb010225320af71c / about / html / avatar.js
411 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.needs = nest({ |
5 | 'about.html.image': 'first', |
6 | 'app.html.link': 'first' |
7 | }) |
8 | |
9 | exports.gives = nest('about.html.avatar') |
10 | |
11 | exports.create = function (api) { |
12 | return nest('about.html.avatar', feed => { |
13 | const Link = api.app.html.link |
14 | |
15 | return Link( |
16 | { page: 'userShow', feed }, |
17 | api.about.html.image(feed) |
18 | ) |
19 | |
20 | }) |
21 | } |
22 | |
23 |
Built with git-ssb-web