git ssb

2+

mixmix / ticktack



Tree: 0818fbce083be238b301bb475711fa9ee88e69b0

Files: 0818fbce083be238b301bb475711fa9ee88e69b0 / app / html / topNav / topNavAddressBook.js

665 bytesRaw
1const nest = require('depnest')
2const { h } = require('mutant')
3
4exports.gives = nest('app.html.topNav')
5
6exports.needs = nest({
7 'translations.sync.strings': 'first'
8})
9
10exports.create = (api) => {
11 return nest('app.html.topNav', (location, input) => {
12 if (location.page !== 'addressBook') return
13
14 const strings = api.translations.sync.strings()
15
16 return h('TopNav -addressBook', [
17 h('div.search', [
18 h('i.fa.fa-search'),
19 h('input', {
20 placeholder: strings.addressBook.action.find[location.section],
21 autofocus: 'autofocus',
22 'ev-input': e => input.set(e.target.value)
23 })
24 ])
25 ])
26 })
27}
28

Built with git-ssb-web