2023-10-20 09:50:19 +00:00
|
|
|
import clsx from "clsx";
|
|
|
|
|
|
|
|
type LabelProps = {
|
|
|
|
value: string;
|
2023-10-21 01:24:47 +00:00
|
|
|
title?: string;
|
2023-10-20 09:50:19 +00:00
|
|
|
className?: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default function ScoreStatLabel({
|
|
|
|
value,
|
2023-10-21 01:24:47 +00:00
|
|
|
title,
|
2023-10-20 09:50:19 +00:00
|
|
|
className = "bg-neutral-700",
|
|
|
|
}: LabelProps) {
|
|
|
|
return (
|
2023-10-21 01:24:47 +00:00
|
|
|
<div
|
|
|
|
className={clsx(
|
|
|
|
"flex min-w-[5rem] flex-col justify-center rounded-md",
|
|
|
|
className,
|
|
|
|
)}
|
|
|
|
>
|
2023-10-20 09:50:19 +00:00
|
|
|
<div className="p4-[0.3rem] flex items-center gap-2 pb-[0.2rem] pl-[0.3rem] pr-[0.3rem] pt-[0.2rem]">
|
2023-10-21 01:24:47 +00:00
|
|
|
<p className="w-full text-center" title={title}>
|
|
|
|
{value}
|
|
|
|
</p>
|
2023-10-20 09:50:19 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|