B2D-Ventures/src/components/countUp.tsx
2024-10-30 20:44:25 +07:00

20 lines
342 B
TypeScript

"use client";
import CountUp from "react-countup";
interface CountUpComponentProps {
end: number;
duration: number;
}
export default function CountUpComponent(props: CountUpComponentProps) {
return (
<>
<CountUp
end={props.end}
duration={props.duration}
start={props.end / 2}
/>
</>
);
}