git ssb

2+

mixmix / ticktack



Tree: 94527b097121d2903dc3709ec79709a5804d13c9

Files: 94527b097121d2903dc3709ec79709a5804d13c9 / 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