git ssb

2+

mixmix / ticktack



Tree: 0b0275502152a806a995b36fd4d29e8c3df1195e

Files: 0b0275502152a806a995b36fd4d29e8c3df1195e / app / html / topNav / zz_topNavBack.js

675 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.back': 'first',
9 'translations.sync.strings': 'first',
10})
11
12exports.create = (api) => {
13 return nest('app.html.topNav', (location) => {
14 // const strings = api.translations.sync.strings()
15 const back = () => api.history.sync.back()
16
17 return h('TopNav -back', [
18 h('div.left', [
19 h('div', { 'ev-click': back }, [
20 h('i.fa.fa-chevron-left'),
21 // strings.blogIndex.title
22 ]),
23 ]),
24 h('div.right', [
25 ])
26 ])
27 })
28}
29
30

Built with git-ssb-web