mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
411 B
17 lines
411 B
6 years ago
|
/* @flow */
|
||
|
import * as React from 'react';
|
||
|
import { FormattedMessage } from 'react-intl';
|
||
|
|
||
|
export const getBottomText = (error: any, warning: any, info: any): React.Node => {
|
||
|
if (error) {
|
||
|
return <FormattedMessage {...error} />;
|
||
|
}
|
||
|
if (warning) {
|
||
|
return <FormattedMessage {...warning} />;
|
||
|
}
|
||
|
if (info) {
|
||
|
return <FormattedMessage {...info} />;
|
||
|
}
|
||
|
return null;
|
||
|
};
|