module.exports = Header var h = require('virtual-dom/h') var hyperx = require('hyperx') var hx = hyperx(h) function Header (state, dispatch) { var hideControls = state.url === '/player' && state.video.mouseStationarySince !== 0 && new Date().getTime() - state.video.mouseStationarySince > 2000 return hx`
${getTitle()}
` function getTitle () { if (process.platform === 'darwin') { return hx`
${state.title}
` } } function getAddButton () { if (state.url !== '/player') { return hx` dispatch('addTorrent')}> add ` } } }