Files: abe1d8efd85c4721c21fbf54e2e4f1afbe7e4396 / app / html / topNav / zz_topNavBack.js
618 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('app.html.topNav') |
5 | |
6 | exports.needs = nest({ |
7 | 'history.sync.back': 'first', |
8 | 'translations.sync.strings': 'first' |
9 | }) |
10 | |
11 | exports.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