Files: f2c1e3d81bf5bba14c878872f1c99529d7eb2be5 / app / page / groupShow.js
548 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('app.page.groupShow') |
5 | |
6 | exports.needs = nest({ |
7 | 'app.html.nav': 'first' |
8 | }) |
9 | |
10 | exports.create = (api) => { |
11 | return nest('app.page.groupShow', groupShow) |
12 | |
13 | function groupShow (location) { |
14 | // location here can be the root message of a group : { type: 'group', key } |
15 | // TODO show specific group index described by key |
16 | |
17 | return h('Page -groupShow', [ |
18 | h('h1', 'Group Show'), |
19 | api.app.html.nav(), |
20 | h('p', `key: ${location.key}`) |
21 | ]) |
22 | } |
23 | } |
24 |
Built with git-ssb-web