import ImmutablePropTypes from 'react-immutable-proptypes' import ImmutablePureComponent from 'react-immutable-pure-component' import Sticky from 'react-stickynode' import Sidebar from '../components/sidebar' import Search from '../components/search' 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' import Block from '../components/block' import ColumnHeader from '../components/column_header' export default class GroupLayout extends ImmutablePureComponent { static propTypes = { actions: PropTypes.array, group: ImmutablePropTypes.map, relationships: ImmutablePropTypes.map, layout: PropTypes.object, showBackBtn: PropTypes.bool, } render() { const { group, children, layout, showBackBtn, actions, relationships } = this.props const tabs = !group ? null : [ { to: `/groups/${group.get('id')}`, title: 'Latest', }, { to: `/groups/${group.get('id')}/pinned`, title: 'Pinned', }, { to: `/groups/${group.get('id')}/popular`, title: 'Popular', }, ] const title = !!group ? group.get('title') : undefined console.log("relationships:", relationships) // const !!relationships && relationships.get('member') return (