git ssb

2+

mixmix / ticktack



Tree: 55ff62f5eea8b7d0e3fb82d71183f46c8b686c5a

Files: 55ff62f5eea8b7d0e3fb82d71183f46c8b686c5a / app / page / group.js

523 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('app.page.group')
5
6exports.needs = nest({
7 'app.html.nav': 'first'
8})
9
10exports.create = (api) => {
11 return nest('app.page.group', group)
12
13 function group (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 -group', [
18 h('h1', 'Group'),
19 api.app.html.nav(),
20 h('p', `key: ${location.key}`)
21 ])
22 }
23}
24

Built with git-ssb-web