import React from 'react'; import { connect } from 'react-redux'; import { me } from 'gabsocial/initial_state'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import WhoToFollowPanel from '../features/ui/components/who_to_follow_panel'; import LinkFooter from '../features/ui/components/link_footer'; import PromoPanel from '../features/ui/components/promo_panel'; import UserPanel from '../features/ui/components/user_panel'; import ComposeFormContainer from '../features/compose/containers/compose_form_container'; import Avatar from '../components/avatar'; import GroupSidebarPanel from '../features/groups/sidebar_panel'; import ProgressPanel from '../features/ui/components/progress_panel'; const mapStateToProps = state => ({ account: state.getIn(['accounts', me]), }); export default @connect(mapStateToProps) class HomePage extends ImmutablePureComponent { render () { const {children, account} = this.props; return (