import { FC } from 'react'; import { GetConfigurationValue, LocalizeFormattedNumber, LocalizeText } from '../../../api'; import { Flex, LayoutCurrencyIcon, Text } from '../../../common'; interface SeasonalViewProps { type: number; amount: number; } export const SeasonalView: FC = props => { const { type = -1, amount = -1 } = props; const seasonalColor = GetConfigurationValue('currency.seasonal.color', 'blue'); return ( {LocalizeText(`purse.seasonal.currency.${type}`)} 99999 ? LocalizeFormattedNumber(amount) : ''} > {amount > 99999 ? '99 999' : LocalizeFormattedNumber(amount)} ); };