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

0 ? 'text-th-up' : change < 0 ? 'text-th-down' : 'text-th-fgd-2' }`} > {prefix ? prefix : ''} {suffix ? suffix : ''}

) : (

) } export default Change