import { MinusSmallIcon } from '@heroicons/react/20/solid' import { formatFixedDecimals } from 'utils/numbers' import { DownTriangle, UpTriangle } from './DirectionTriangles' const Change = ({ change, prefix, size, suffix, }: { change: number | typeof NaN prefix?: string size?: 'small' suffix?: string }) => { return (
{change > 0 ? (
) : change < 0 ? (
) : ( )}

0 ? 'text-th-up' : change < 0 ? 'text-th-down' : 'text-th-fgd-4' }`} > {prefix ? prefix : ''} {isNaN(change) ? '0.00' : formatFixedDecimals(Math.abs(change), false, true)} {suffix ? suffix : ''}

) } export default Change