git ssb

2+

mixmix / ticktack



Tree: a73aa37ff93b9ce8d191f6ab8ad82e4c673126f2

Files: a73aa37ff93b9ce8d191f6ab8ad82e4c673126f2 / app / page / group.js

593 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('app.page.group')
5
6exports.needs = nest({
7 'app.sync.goTo': '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 const { goTo } = api.app.sync
18
19 return h('div', [
20 h('h1', 'Group'),
21 h('a', { 'ev-click': () => goTo({ page: 'home' }) }, 'Home'),
22 h('p', `key: ${location.key}`)
23 ])
24 }
25}
26

Built with git-ssb-web