git ssb

2+

mixmix / ticktack



Tree: 8c68dbb9a3b69a0cf0e0dd503ef059a873189cd5

Files: 8c68dbb9a3b69a0cf0e0dd503ef059a873189cd5 / app / html / topNav / topNavAddressBook.js

721 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 'translations.sync.strings': 'first',
9})
10
11exports.create = (api) => {
12 return nest('app.html.topNav', (location, input) => {
13 if (location.page !== 'addressBook') return
14
15 const strings = api.translations.sync.strings()
16
17 return h('TopNav -addressBook', [
18 h('div.search', [
19 h('i.fa.fa-search'),
20 h('input', {
21 placeholder: strings.addressBook.action.find[location.section],
22 autofocus: 'autofocus',
23 'ev-input': e => input.set(e.target.value)
24 }),
25 ])
26 ])
27 })
28}
29
30

Built with git-ssb-web