'use client' import React from "react"; import CountUp from "react-countup"; import VisibilitySensor from "react-visibility-sensor"; const counterUpContent = [ { startCount: "0", endCount: "1500", endPointText: "+", countMeta: "Positive Review", meta: "A place to think and track ideas", animationDelay: "0", }, { startCount: "0", endCount: "200", endPointText: "+", countMeta: "Branches", meta: "A home for your iqu team, best", animationDelay: "100", }, { startCount: "0", endCount: "2", endPointText: "k+", countMeta: "Work Done", meta: "Beautiful docs for your APIs, Products", animationDelay: "200", }, ]; const CounterFive = () => { const [focus, setFocus] = React.useState(false); return (
{counterUpContent.map((val, i) => (

{" "} {({ countUpRef }) => ( { if (isVisible) { setFocus(true); } }} > )} {val.endPointText}

{val.countMeta}

{val.meta}

))}
); }; export default CounterFive;