import classNames from 'classnames'; import { useSpring, animated } from 'react-spring'; import { formatNumber } from 'lib/format'; import styles from './MetricCard.module.css'; export const MetricCard = ({ value = 0, change = 0, label, reverseColors = false, format = formatNumber, hideComparison = false, className, }) => { const props = useSpring({ x: Number(value) || 0, from: { x: 0 } }); const changeProps = useSpring({ x: Number(change) || 0, from: { x: 0 } }); return (