mirror of
https://github.com/trezor/trezor-wallet
synced 2025-07-06 14:52:33 +00:00
20 lines
583 B
JavaScript
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)}
|
|
/>
|
|
);
|
|
};
|