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 var navLeftStyle = (process.platform === 'darwin' && !state.isFullScreen) ? { marginLeft: '78px' } /* OSX needs room on the left for min/max/close buttons */ : {} /* On Windows and Linux, the header is separate & underneath the title bar */ return hx`