import React, { PropTypes } from 'react' import { connect } from 'react-redux' import CSSModules from 'browser/lib/CSSModules' import styles from './TopBar.styl' import activityRecord from 'browser/lib/activityRecord' const OSX = window.process.platform === 'darwin' class TopBar extends React.Component { constructor (props) { super(props) this.state = { search: '' } } isInputFocused () { return document.activeElement === this.refs.searchInput } escape () { } focusInput () { this.searchInput.focus() } blurInput () { this.searchInput.blur() } handleSearchChange (e) { } handleSearchClearButton (e) { this.searchInput.value = '' this.focusInput() } handleNewPostButtonClick (e) { activityRecord.emit('ARTICLE_CREATE') } handleTutorialButtonClick (e) { } handleLinksButton (e) { } render () { let { config } = this.props return (