// @flow import * as PAGES from 'constants/pages'; import * as ICONS from 'constants/icons'; import * as React from 'react'; import Button from 'component/button'; import classnames from 'classnames'; import Tooltip from 'component/common/tooltip'; type Props = { unreadSubscriptionTotal: number, shouldShowInviteGuide: string, }; class SideBar extends React.PureComponent { render() { const { unreadSubscriptionTotal, shouldShowInviteGuide } = this.props; const buildLink = (path, label, icon, guide) => ({ navigate: path ? `$/${path}` : '/', label, icon, guide, }); const renderLink = (linkProps, index) => { const { guide } = linkProps; const inner = (