git ssb

2+

mixmix / ticktack



Tree: e73bff8390f085ab1944c5d9ac4c514cbbacf355

Files: e73bff8390f085ab1944c5d9ac4c514cbbacf355 / app / page / private.js

559 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4const pull = require('pull-stream')
5
6exports.gives = nest('app.page.private')
7
8exports.needs = nest({
9 'app.html.nav': 'first',
10 'app.html.thread': 'first'
11})
12
13exports.create = (api) => {
14 return nest('app.page.private', private)
15
16 function private (location) {
17 // location here can expected to be an ssb-message
18
19 const thread = api.app.html.thread(location.key)
20
21 return h('Page -private', [
22 h('h1', 'Private message'),
23 api.app.html.nav(),
24 thread
25 ])
26 }
27}
28

Built with git-ssb-web