Files: 6f9ed10872eb05dbde900a885c8e412c20447599 / components / nav.js
598 bytesRaw
1 | var Component = require('choo/component') |
2 | const h = require('hyperscript') |
3 | |
4 | class Nav extends Component { |
5 | constructor (id, state, emit) { |
6 | super(id) |
7 | this.local = state.components[id] = {} |
8 | } |
9 | |
10 | createElement () { |
11 | return h('nav.tc.pv5', [ |
12 | h('a.link.dim.black.b.f6.f5-ns.dib.mr5', { |
13 | href: '/' |
14 | }, 'home'), |
15 | h('a.link.dim.gray.f6.f5-ns.dib.mr5', { |
16 | href: '/transactions' |
17 | }, 'transactions'), |
18 | h('a.link.dim.gray.f6.f5-ns.dib', { |
19 | href: '/accounts' |
20 | }, 'accounts') |
21 | ]) |
22 | } |
23 | |
24 | update () { |
25 | return true |
26 | } |
27 | } |
28 | |
29 | module.exports = Nav |
30 |
Built with git-ssb-web