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.
trezor-wallet/src/utils/uiUtils.js

17 lines
411 B

/* @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;
};