git ssb

2+

mixmix / ticktack



Tree: 417d3c1ef9e250a2e8a514b4db11c113b21dfe18

Files: 417d3c1ef9e250a2e8a514b4db11c113b21dfe18 / app / html / link.js

402 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('app.html.link')
5
6exports.needs = nest({
7 'history.sync.push': 'first'
8})
9
10exports.create = (api) => {
11 return nest('app.html.link', (location, body) => {
12 return h('Link', {
13 'ev-click': () => api.history.sync.push(location),
14 className: typeof body === 'string' ? '-string' : ''
15 }, body)
16 })
17}
18

Built with git-ssb-web