UNPKG

matrix-react-sdk

Version:
9 lines (8 loc) 452 B
import { IContent } from "matrix-js-sdk/src/matrix"; /** * Renders a message with the changes made in an edit shown visually. * @param {IContent} originalContent the content for the base message * @param {IContent} editContent the content for the edit message * @return {JSX.Element} a react element similar to what `bodyToHtml` returns */ export declare function editBodyDiffToHtml(originalContent: IContent, editContent: IContent): JSX.Element;