/* @flow */ //import React, { Node } from 'react'; import * as React from 'react'; import { Link, NavLink } from 'react-router-dom'; import { TransitionGroup, CSSTransition } from 'react-transition-group'; import { DeviceSelect, DeviceDropdown } from './DeviceSelection'; import AccountSelection from './AccountSelection'; import CoinSelection from './CoinSelection'; import StickyContainer from './StickyContainer'; import type { Props } from './index'; import type { TrezorDevice } from 'flowtype'; type TransitionMenuProps = { animationType: string; children?: React.Node; } const TransitionMenu = (props: TransitionMenuProps): React$Element => ( { window.dispatchEvent(new Event('resize')); }} onExited={() => window.dispatchEvent(new Event('resize'))} in out classNames={props.animationType} appear={false} timeout={300} > { props.children } ); const Aside = (props: Props): React$Element => { const selected: ?TrezorDevice = props.wallet.selectedDevice; const { location } = props.router; if (location.pathname === '/' || !selected) return (