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