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

{title}

{children}
); };