import clsx from "clsx"; import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/Tooltip"; type LabelProps = { value: string; tooltip?: React.ReactNode; icon?: JSX.Element; className?: string; }; export default function ScoreStatLabel({ value, tooltip, icon, className = "bg-neutral-700", }: LabelProps) { const base = (

{value} {icon}

); if (tooltip) { return ( {base} {tooltip} ); } return base; }