matrix-react-sdk
Version:
SDK for matrix.org using React
9 lines (8 loc) • 452 B
TypeScript
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;