git ssb

2+

mixmix / ticktack



Tree: 8d7dc1a22c947417b8c5b3b0c73f1d9c7e6cefe9

Files: 8d7dc1a22c947417b8c5b3b0c73f1d9c7e6cefe9 / app / html / topNav / zz_topNavBack.js

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

Built with git-ssb-web