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

{title}

{children}
); };