import { Fragment } from 'react' import { NavLink } from 'react-router-dom' import ImmutablePropTypes from 'react-immutable-proptypes' import ImmutablePureComponent from 'react-immutable-pure-component' import { me } from '../initial_state' import { makeGetAccount } from '../selectors' import GabLogo from '../assets/gab_logo' import SidebarSectionItem from './sidebar_section_item' const mapStateToProps = state => { const getAccount = makeGetAccount() return { account: getAccount(state, me), } } export default @connect(mapStateToProps) class SidebarHeader extends ImmutablePureComponent { static propTypes = { account: ImmutablePropTypes.map, } render() { const { account } = this.props return (

{ (!!me && !!account) && }
) } }