import React from "react"; import classNames from "classnames"; import { BoxProps } from "../Box"; import { Flex } from "../Flex"; import { Icon, ICON_TYPE } from "../Icon"; import { Text } from "../Text"; import { bem } from "../../utilities/bem"; const cn = "PropertyDiff"; export interface PropertyDiffProps extends BoxProps { property?: string; oldValue?: string; newValue?: string; } export const PropertyDiff = (props: PropertyDiffProps) => { const { property, oldValue, newValue, className, ...rest } = props; return ( {property && ( {property} )} {oldValue && ( {oldValue} )} {oldValue && newValue && ( )} {newValue && ( {newValue} )} ); };