Files: b763bdeb4867a9283ac98ff74113ac0dd62507f5 / app / page / groupShow.js
588 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 | 'translations.sync.strings': 'first', |
8 | }) |
9 | |
10 | exports.create = (api) => { |
11 | var strings = api.translations.sync.strings() |
12 | return nest('app.page.groupShow', groupShow) |
13 | |
14 | function groupShow (location) { |
15 | // location here can be the root message of a group : { type: 'group', key } |
16 | // TODO show specific group index described by key |
17 | |
18 | return h('Page -groupShow', {title: strings.groupShow}, [ |
19 | h('p', `key: ${location.key}`) |
20 | ]) |
21 | } |
22 | } |
23 | |
24 | |
25 | |
26 | |
27 | |
28 |
Built with git-ssb-web