import React, { Component } from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' import Sprite from './Sprite' class MobileHeader extends Component { static propTypes = { unreadNotificationsCount: PropTypes.number, currentUser: PropTypes.object, mobileTitle: PropTypes.string, mobileTitleWidth: PropTypes.number, onTitleClick: PropTypes.func } constructor(props) { super(props) this.state = {open: false} } toggle = () => { this.setState({open: !this.state.open}) } render() { const { unreadNotificationsCount, currentUser, mobileTitle, mobileTitleWidth, onTitleClick, serverData } = this.props const { open } = this.state return
{mobileTitle}
{open &&
{currentUser && } {!currentUser && }
}
} } export default MobileHeader