// @flow import CreditAmount from 'component/common/credit-amount'; import I18nMessage from 'component/i18nMessage'; import React from 'react'; type Props = { balance: number, inline?: boolean }; function WalletSpendableBalanceHelp(props: Props) { const { balance, inline } = props; const getMessage = (text: string) => ( }}>{text} ); return !balance ? null : inline ? ( {getMessage('%balance% available.')} ) : (
{getMessage('Your immediately spendable balance is %balance%.')}
); } export default WalletSpendableBalanceHelp;