import type { ReactNode } from "react"; import { memo } from "react"; import humanize from "@/helpers/humanize"; import { Card, H4 } from "./UI"; interface NumberedStatsProps { count?: string; name: ReactNode; suffix?: string; } const NumberedStat = ({ count, name, suffix }: NumberedStatsProps) => { return (
{name}

{humanize(Number(count))} {suffix}

); }; export default memo(NumberedStat);