/* @flow */ import * as React from 'react'; import Notification from 'components/Notification'; import type { Props } from '../../index'; export default (props: Props) => { const { selectedAccount } = props; const { account } = selectedAccount; const { location } = props.router; const notifications: Array = []; if (!location || !selectedAccount || !account) return null; // Ripple minimum reserve notification if (location.pathname.includes('xrp') && parseInt(account.balance, 10) < 20) { notifications.push( , ); } return ( {notifications} ); };