Files: 1a326ad6e229f48d252a5d8e4e8dd65a803f4d58 / post-patchcore / message / html / action / quote.js
405 bytesRaw
1 | var h = require('mutant/h') |
2 | var nest = require('depnest') |
3 | |
4 | exports.needs = nest({ |
5 | 'app.sync.goTo': 'first' |
6 | }) |
7 | |
8 | exports.gives = nest('message.html.action') |
9 | |
10 | exports.create = (api) => { |
11 | return nest('message.html.action', function quote (msg) { |
12 | return h('a', { |
13 | href: '#', |
14 | 'ev-click': () => api.app.sync.goTo({ action: 'quote', key: msg.key, value: msg.value }) |
15 | }, 'Quote') |
16 | }) |
17 | } |
18 |
Built with git-ssb-web