import { Typography } from "antd"; export default function DataLabel({ label, hideIfNull, children, open = true, styles, valueClassName, onValueClick, ...props }) { if (!open || (hideIfNull && !children)) return null; return (
{`${label}:`}
{typeof children === "string" ? {children} : children}
); }