mirror of https://github.com/trezor/trezor-wallet
parent
9a083dff87
commit
3bcf991ef9
@ -0,0 +1,16 @@
|
||||
/* @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;
|
||||
};
|
Loading…
Reference in new issue