import React from 'react'; import { FormattedNumber } from 'react-intl'; export const isNumber = number => typeof number === 'number' && !isNaN(number); export const shortNumberFormat = number => { if (!isNumber(number)) return '•'; if (number < 1000) { return ; } else { return K; } };