matrix-react-sdk
Version:
SDK for matrix.org using React
15 lines (14 loc) • 517 B
TypeScript
import React from "react";
import { MatrixEvent } from "matrix-js-sdk/src/matrix";
import { IBodyProps } from "./IBodyProps";
interface IProps {
mxEvent: MatrixEvent;
}
/**
* A message hidden from the user pending moderation.
*
* Note: This component must not be used when the user is the author of the message
* or has a sufficient powerlevel to see the message.
*/
declare const HiddenBody: (props: (IBodyProps | IProps) & React.RefAttributes<any>) => React.ReactElement | null;
export default HiddenBody;