Files: b10ce2e3fb81fd4e7ded0080858d4a7ff1d508f9 / message / html / channel.js
493 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('message.html.channel') |
5 | |
6 | exports.needs = nest({ |
7 | 'history.sync.push': 'first' |
8 | }) |
9 | |
10 | exports.create = function (api) { |
11 | return nest('message.html.channel', channel) |
12 | |
13 | function channel (msg) { |
14 | const { channel } = msg.value.content |
15 | |
16 | if (!channel) return |
17 | |
18 | return h('Button -channel', { |
19 | // 'ev-click': () => history.sync.push({ page: 'channelIndex', channel }) // TODO |
20 | }, channel) |
21 | } |
22 | } |
23 | |
24 | |
25 |
Built with git-ssb-web