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

{name}

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

{value}

: value}
); }