1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-07-06 14:52:33 +00:00
trezor-wallet/src/components/notifications/App/components/OnlineStatus/index.js
2019-05-02 14:00:24 +02:00

20 lines
583 B
JavaScript

/* @flow */
import * as React from 'react';
import { Notification } from 'trezor-ui-components';
import type { Props } from '../../index';
import l10nMessages from './index.messages';
export default (props: Props) => {
const { online } = props.wallet;
if (online) return null;
return (
<Notification
key="wallet-offline"
variant="error"
title={props.intl.formatMessage(l10nMessages.TR_YOU_WERE_DISCONNECTED_DOT)}
message={props.intl.formatMessage(l10nMessages.TR_PLEASE_RELOAD_THE_PAGE_DOT)}
/>
);
};