import ImmutablePropTypes from 'react-immutable-proptypes' import ImmutablePureComponent from 'react-immutable-pure-component' import Sticky from 'react-stickynode' import Sidebar from '../components/sidebar' import Image from '../components/image' import Text from '../components/text' import Button from '../components/button' import DisplayName from '../components/display_name' import TabBar from '../components/tab_bar' export default class ProfileLayout extends ImmutablePureComponent { static propTypes = { account: ImmutablePropTypes.map, layout: PropTypes.object, title: PropTypes.string, showBackBtn: PropTypes.bool, } render() { const { account, children, layout } = this.props const tabs = !account ? null : [ { to: `/${account.get('acct')}`, title: 'Timeline', }, { to: `/${account.get('acct')}/comments`, title: 'Comments', }, { to: `/${account.get('acct')}/media`, title: 'Media', }, { to: '', title: 'More', }, ] return (