import { formatUsdValue } from '../utils' import { MarketDataLoader } from './MarketDetails' interface DayHighLowProps { high: number low: number latest: number isTableView?: boolean } const DayHighLow = ({ high, low, latest, isTableView }: DayHighLowProps) => { let rangePercent = 0 if (high) { rangePercent = ((latest - low) * 100) / (high - low) } return (