mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 05:54:06 +01:00
20 lines
342 B
TypeScript
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}
|
|
/>
|
|
</>
|
|
);
|
|
}
|