import React from "react"; import { CLASSPREFIX as eccgui } from "../../configuration/constants"; import OverflowText from "../Typography/OverflowText"; export interface PropertyValueProps extends React.HTMLAttributes { /** * Force value to get displayed without line breaks. * This works best if you use a string or inline element as content. * Otherwise, you may need to take care yourself about it. */ nowrap?: boolean; } export const PropertyValue = ({ children, className = "", nowrap, ...otherDdProps }: PropertyValueProps) => { return (
{nowrap ? {children} : children}
); }; export default PropertyValue;