git ssb

16+

Dominic / patchbay



Tree: 261718c426b0d5a333dfa4acc00aacf92c5fe394

Files: 261718c426b0d5a333dfa4acc00aacf92c5fe394 / message / html / quote.js

497 bytesRaw
1var h = require('mutant/h')
2var nest = require('depnest')
3
4exports.gives = nest('message.html.quote')
5
6exports.needs = nest({
7 'app.sync.goTo': 'first'
8})
9
10exports.create = (api) => {
11 return nest('message.html.quote', function quote (msg) {
12 return h('i.MessageQuote.fa.fa-quote-right',
13 {
14 'ev-click': (ev) => {
15 ev.preventDefault()
16 api.app.sync.goTo({ action: 'quote', key: msg.key, value: msg.value })
17 },
18 title: 'quote'
19 }
20 )
21 })
22}
23

Built with git-ssb-web