git ssb

2+

mixmix / ticktack



Tree: c2cb876f7ef9db11df921ff5cebd31e0d8721cd1

Files: c2cb876f7ef9db11df921ff5cebd31e0d8721cd1 / app / page / image.js

481 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('app.page.image')
5
6exports.needs = nest({
7 'about.html.image': 'first',
8 'about.obs.name': 'first',
9 'app.html.thread': 'first',
10 'blob.sync.url': 'first'
11})
12
13exports.create = (api) => {
14 return nest('app.page.image', function (location) {
15 return h('Page -image', [
16 h('div.content', [
17 h('img', {src: api.blob.sync.url(location.blob || location)})
18 ])
19 ])
20 })
21}
22
23
24

Built with git-ssb-web