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