git ssb

2+

mixmix / ticktack



Tree: b9268a67c8b095ed9b76e5d1192a6a88bddb1573

Files: b9268a67c8b095ed9b76e5d1192a6a88bddb1573 / app / page / private.js

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

Built with git-ssb-web