aboutsummaryrefslogtreecommitdiff
path: root/src/view/layout.ts
blob: ac62290661f733406e92559a2efaa8c8ab960d91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import h from 'lib/h'
import * as dom from 'lib/dom'
import * as form from 'view/form'

export function view(main: Element): Element[] {
  return [
    h('header', 
      { onclick: () => dom.show(form.view()) }, 
      'Chords'
    ),
    main
  ]
}