import { tryParseInt } from './' ; export function tryParseCurrency ( str , fallback ) { const parsed = tryParseInt ( str , fallback ) ; if ( parsed === fallback ) { return fallback ; } return `kr ${ parsed as number }` ; }