// @flow import * as PAGES from 'constants/pages'; import * as ICONS from 'constants/icons'; import React from 'react'; import { withRouter } from 'react-router'; import Button from 'component/button'; import Tag from 'component/tag'; import StickyBox from 'react-sticky-box/dist/esnext'; import Spinner from 'component/spinner'; type Props = { subscriptions: Array, followedTags: Array, email: ?string, obscureSideNavigation: boolean, uploadCount: number, sticky: boolean, expanded: boolean, doSignOut: () => void, location: { pathname: string }, }; function SideNavigation(props: Props) { const { subscriptions, followedTags, obscureSideNavigation, uploadCount, doSignOut, email, sticky = true, expanded = false, location, } = props; const { pathname } = location; const isAuthenticated = Boolean(email); function buildLink(path, label, icon, onClick) { return { navigate: path ? `$/${path}` : '/', label, icon, onClick, }; } const Wrapper = ({ children }: any) => sticky ? ( {children} ) : (
{children}
); return obscureSideNavigation ? (

LBRY

{__('The best decentralized content platform on the web.')}

) : ( ); } export default withRouter(SideNavigation);