git ssb

2+

mixmix / ticktack



Tree: 48bebcda44d351b3e77a42a761d37c9ff72ec9f0

Files: 48bebcda44d351b3e77a42a761d37c9ff72ec9f0 / app / page / image.js

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

Built with git-ssb-web