import CountUp from 'react-countup'

interface CountUpNumberProps {
  end: number
  className?: string
}

export function CountUpNumber({ end, className }: CountUpNumberProps) {
  return (
    <CountUp
      end={end}
      duration={2.5}
      separator=","
      className={className}
    />
  )
}
