Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

369 B
Raw Blame
import { memo } from 'react';

import { useAnimatedCount } from './useAnimatedCount';

interface AnimatedCountProps {
  format: (value: number) => string;
  value: number;
}

const AnimatedCount = memo<AnimatedCountProps>(({ format, value }) => (
  <>{useAnimatedCount(value, format)}</>
));

AnimatedCount.displayName = 'AnimatedCount';

export default AnimatedCount;