import { CurrencyOption } from 'models/currency-option' ; import { CSSProperties } from 'react' ; import { CURRENCY_ETH , CURRENCY_USD } from 'constants/currency' ; const currencies = { [ CURRENCY_ETH ] : { name : 'ETH' , symbol : 'Ξ' , style : { fontFamily : 'sans-serif' , } , } , [ CURRENCY_USD ] : { name : 'USD' , symbol : '$' , } , } ; export const currencyName = ( currency ? ) : typeof currencies [ keyof typeof currencies ] [ 'name' ] | undefined => currency !== undefined ? currencies [ currency ] . name : undefined ; export const currencySymbol = ( currency ? ) => currency !== undefined ? currencies [ currency ] . symbol : undefined ; export const currencyStyle = ( currency ? ) => currency !== undefined ? currencies [ currency ] . style : undefined ;