import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, Link } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import Icon from 'flavours/glitch/components/icon'; import { showTrends } from 'flavours/glitch/initial_state'; import { preferencesLink, relationshipsLink } from 'flavours/glitch/utils/backend_links'; import NotificationsCounterIcon from './notifications_counter_icon'; import FollowRequestsNavLink from './follow_requests_nav_link'; import ListPanel from './list_panel'; import TrendsContainer from 'flavours/glitch/features/getting_started/containers/trends_container'; import SignInBanner from './sign_in_banner'; export default class NavigationPanel extends React.Component { static contextTypes = { router: PropTypes.object.isRequired, identity: PropTypes.object.isRequired, }; static propTypes = { onOpenSettings: PropTypes.func, }; render() { const { signedIn } = this.context.identity; const { onOpenSettings } = this.props; return (
{signedIn && ( )} { showTrends && } {!signedIn && (

)} {signedIn && (
{!!preferencesLink && } {!!relationshipsLink && }
)}

{showTrends && (
)}
); } }