// Copyright 2017-2018 Jaco Greeff // This software may be modified and distributed under the terms // of the ISC license. See the LICENSE file for details. // @flow import type { I18nProps } from '@polkadot/ui-app/types'; import './SideBar.css'; import React from 'react'; import Icon from '@polkadot/ui-app/src/Icon'; import Menu from '@polkadot/ui-app/src/Menu'; import routing from '../routing'; import translate from '../translate'; import Item from './Item'; type Props = I18nProps & {}; function SideBar ({ className, style, t }: Props): React$Node { return (
{ routing.routes.map((route, index) => ( route ? ( ) : (
); } export default translate(SideBar);