import { injectIntl, defineMessages } from 'react-intl' import { me } from '../initial_state' import SidebarSectionTitle from './sidebar_section_title' import SidebarSectionItem from './sidebar_section_item' import Heading from './heading' import BackButton from './back_button' const messages = defineMessages({ explore: { id: 'explore', defaultMessage: 'Explore' }, menu: { id: 'menu', defaultMessage: 'Menu' }, }) export default @injectIntl class Sidebar extends PureComponent { static propTypes = { intl: PropTypes.object.isRequired, title: PropTypes.string, } render() { const { intl, title } = this.props if (!!me) return null const menuItems = [ { title: 'Home', icon: 'home', to: '/home', }, { title: 'Search', icon: 'search-alt', to: '/search', }, { title: 'Groups', icon: 'group', to: '/groups', }, { title: 'Explore', icon: 'explore', to: '/explore', }, ] const exploreItems = [ { title: 'Apps', icon: 'apps', href: 'https://apps.gab.com', }, { title: 'Shop', icon: 'shop', href: 'https://shop.dissenter.com', }, { title: 'Trends', icon: 'trends', href: 'https://trends.gab.com', }, { title: 'Dissenter', icon: 'dissenter', href: 'https://dissenter.com', }, ] return (
{ !!title &&
{title}
}
) } }