import React from 'react' import PropTypes from 'prop-types' import { injectIntl, defineMessages } from 'react-intl' import { me } from '../../initial_state' import SidebarSectionTitle from '../sidebar_section_title' import SidebarSectionItem from '../sidebar_section_item' import SidebarLayout from './sidebar_layout' class LoggedOutSidebar extends React.PureComponent { render() { const { intl, title } = this.props if (!!me) return null return ( {intl.formatMessage(messages.menu)} {intl.formatMessage(messages.explore)} ) } } const messages = defineMessages({ explore: { id: 'explore', defaultMessage: 'Explore' }, menu: { id: 'menu', defaultMessage: 'Menu' }, }) LoggedOutSidebar.propTypes = { intl: PropTypes.object.isRequired, title: PropTypes.string, } export default injectIntl(LoggedOutSidebar)