import { formatUsdValue } from '../utils' import { MarketDataLoader } from './MarketDetails' import { useTranslation } from 'next-i18next' const DayHighLow = ({ high, low, latest }) => { const { t } = useTranslation('common') let rangePercent = 0 if (high) { rangePercent = ((parseFloat(latest) - parseFloat(low)) * 100) / (parseFloat(high) - parseFloat(low)) } return (