module.exports = Header
var h = require('virtual-dom/h')
var hyperx = require('hyperx')
var hx = hyperx(h)
function Header (state, dispatch) {
return hx`
`
function getTitle () {
if (process.platform === 'darwin') {
return hx`${state.window.title}
`
}
}
function getAddButton () {
if (state.location.current().url !== 'player') {
return hx`
dispatch('showOpenTorrentFile')}>
add
`
}
}
}