git ssb

2+

mixmix / ticktack



Tree: 21356aaa4753e18222e18b41eaed0b8d2368eaa0

Files: 21356aaa4753e18222e18b41eaed0b8d2368eaa0 / app / page / image.js

509 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('img', {src: api.blob.sync.url(location.blob || location)})
19 })
20}
21
22
23
24
25
26
27
28
29
30

Built with git-ssb-web