git ssb

2+

mixmix / ticktack



Tree: f3409d0dc8b00fb3846783f9e510314430c1ecd1

Files: f3409d0dc8b00fb3846783f9e510314430c1ecd1 / app / page / threadNew.js

640 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('app.page.threadNew')
5
6exports.needs = nest({
7 'about.html.image': 'first',
8 'about.obs.name': 'first',
9 'app.html.nav': 'first',
10 'app.html.thread': 'first',
11})
12
13exports.create = (api) => {
14 return nest('app.page.threadNew', threadNew)
15
16 function threadNew (location) {
17 const { feed } = location
18
19 return h('Page -threadNew', [
20 h('h1', ['New thread with ', api.about.obs.name(feed)]),
21 api.about.html.image(feed),
22 api.app.html.nav(),
23 h('div', 'compose box') // a special one which takes us to threadShow
24 ])
25 }
26}
27

Built with git-ssb-web