git ssb

2+

mixmix / ticktack



Tree: 1e55478903ee72a0823df4336254a2e7a9da5b0e

Files: 1e55478903ee72a0823df4336254a2e7a9da5b0e / app / html / topNav / zz_topNavBack.js

618 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('app.html.topNav')
5
6exports.needs = nest({
7 'history.sync.back': 'first',
8 'translations.sync.strings': 'first'
9})
10
11exports.create = (api) => {
12 return nest('app.html.topNav', (location) => {
13 // const strings = api.translations.sync.strings()
14 const back = () => api.history.sync.back()
15
16 return h('TopNav -back', [
17 h('div.left', [
18 h('div', { 'ev-click': back }, [
19 h('i.fa.fa-chevron-left')
20 // strings.blogIndex.title
21 ])
22 ]),
23 h('div.right', [
24 ])
25 ])
26 })
27}
28

Built with git-ssb-web