git ssb

7+

dinoworm ๐Ÿ› / patchcore



Tree: 69ad8a490ee9bf4c8a9f0ebe199cbaf19d7ab938

Files: 69ad8a490ee9bf4c8a9f0ebe199cbaf19d7ab938 / about / html / image.js

437 bytesRaw
1var h = require('mutant/h')
2var nest = require('depnest')
3
4exports.needs = nest({
5 'about.obs.imageUrl': 'first',
6 'about.obs.color': 'first'
7})
8
9exports.gives = nest('about.html.image')
10
11exports.create = function (api) {
12 return nest('about.html.image', function (id) {
13 return h('img', {
14 className: 'Avatar',
15 style: { 'background-color': api.about.obs.color(id) },
16 src: api.about.obs.imageUrl(id)
17 })
18 })
19}
20

Built with git-ssb-web