Files: e73bff8390f085ab1944c5d9ac4c514cbbacf355 / app / page / private.js
559 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | const pull = require('pull-stream') |
5 | |
6 | exports.gives = nest('app.page.private') |
7 | |
8 | exports.needs = nest({ |
9 | 'app.html.nav': 'first', |
10 | 'app.html.thread': 'first' |
11 | }) |
12 | |
13 | exports.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