git ssb

16+

Dominic / patchbay



Tree: b54dfb523349bba5720363e6c177039b9762ad5d

Files: b54dfb523349bba5720363e6c177039b9762ad5d / 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