import clsx, { ClassValue } from "clsx"; type Props = { /** * The stat name. */ name?: string; /** * The background color of the stat. */ color?: ClassValue; /** * The value of the stat. */ value: React.ReactNode; }; export default function StatValue({ name, color, value }: Props) { return (
{name && ( <>

{name}

)}
{typeof value === "string" ?

{value}

: value}
); }