import type { IconDefinition } from '@fortawesome/free-solid-svg-icons'; import classNames from 'classnames'; import type { ReactNode } from 'react'; import { useFitText } from '@flyyer/use-fit-text'; import CopyOnClick from '@/components/elements/CopyOnClick'; import Icon from '@/components/elements/Icon'; import styles from './style.module.css'; interface StatBlockProps { title: string; copyOnClick?: string; color?: string | undefined; icon: IconDefinition; children: ReactNode; className?: string; } function StatBlock({ title, copyOnClick, icon, color, className, children }: StatBlockProps) { const { fontSize, ref } = useFitText({ minFontSize: 8, maxFontSize: 500 }); return (

{title}

{children}
); } export default StatBlock;