<AnimatedNumbers
includeComma
animateToNumber={parseInt(achievement.value)}
locale="en-US"
className="text-white text-4xl font-bold"
configs={(_: any, index: any): any => {
return {
mass: 1,
friction: 100,
tensions: 140 * (index + 1),
};
}}
/>
also, the error is: type error: Type '{ includeComma: true; animateToNumber: number; locale: string; className: string; configs: (_: any, index: any) => any; }' is not assignable to type 'IntrinsicAttributes & Props'.
"use client";
import React from "react";
import dynamic from "next/dynamic";
const AnimatedNumbers = dynamic(
() => {
return import("react-animated-numbers");
},
{ ssr: false }
);