module.exports = Header var {dispatcher} = require('../lib/dispatcher') var hx = require('../lib/hx') function Header (state) { return hx`
${getTitle()}
` function getTitle () { if (process.platform === 'darwin') { return hx`
${state.window.title}
` } } function getAddButton () { if (state.location.url() === 'home') { return hx` add ` } } }