import { useState } from 'react' import CountUp from "react-countup" import ScrollTrigger from 'react-scroll-trigger' export default function CounterUp({ count, time, color }) { const [counterOn, setCounterOn] = useState(false) return ( <> setCounterOn(true)} onExit={() => setCounterOn(false)} component="span"> {({ countUpRef }) => ( )} ) }