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

{signedIn && ( )} {!signedIn && (
)} {signedIn && (
)} {showTrends && (
)}
); } }