32 lines
657 B
TypeScript
32 lines
657 B
TypeScript
import clsx from "clsx";
|
|
|
|
type LabelProps = {
|
|
title: string;
|
|
value: any;
|
|
hoverValue?: string;
|
|
className?: string;
|
|
};
|
|
|
|
export default function Label({
|
|
title,
|
|
value,
|
|
hoverValue,
|
|
className = "bg-neutral-700",
|
|
}: LabelProps) {
|
|
return (
|
|
<div
|
|
className={clsx(
|
|
"flex flex-col justify-center rounded-md hover:cursor-default",
|
|
className,
|
|
)}
|
|
title={hoverValue}
|
|
>
|
|
<div className="p4-[0.3rem] flex items-center gap-2 pb-[0.2rem] pl-[0.3rem] pr-[0.3rem] pt-[0.2rem]">
|
|
<p>{title}</p>
|
|
<div className="h-4 w-[1px] bg-neutral-100"></div>
|
|
<p>{value}</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|