// @flow import * as React from 'react'; import Button from 'component/button'; import classnames from 'classnames'; import * as icons from 'constants/icons'; import * as NOTIFICATION_TYPES from 'constants/notification_types'; type SideBarLink = { label: string, path: string, active: boolean, icon: ?string, subLinks: Array, }; type Props = { navigate: any => void, back: any => void, forward: any => void, isBackDisabled: boolean, isForwardDisabled: boolean, navLinks: { primary: Array, secondary: Array, }, notifications: { type: string, }, }; const SideBar = (props: Props) => { const { navigate, back, forward, isBackDisabled, isForwardDisabled, navLinks, notifications, } = props; const badges = Object.keys(notifications).reduce( (acc, cur) => (notifications[cur].type === NOTIFICATION_TYPES.DOWNLOADING ? acc : acc + 1), 0 ); return ( ); }; export default SideBar;