const React = require('react') const {dispatcher} = require('../lib/dispatcher') module.exports = class Header extends React.Component { render () { var loc = this.props.state.location return (
{this.getTitle()}
chevron_left chevron_right
{this.getAddButton()}
) } getTitle () { if (process.platform !== 'darwin') return null var state = this.props.state return (
{state.window.title}
) } getAddButton () { var state = this.props.state if (state.location.url() !== 'home') return null return ( add ) } }