synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
24 lines • 710 B
TypeScript
/**
* @param options
* @returns HTML that is cleaned if it is not trusted. undefined if `isLoading` is true.
*/
declare function useCleanHtml(options: {
rawHtml: string;
isLoading: boolean;
isTrusted: boolean;
}): string | undefined;
export type HtmlPreviewProps = {
createdByUserId: string;
rawHtml: string;
};
/**
* Renders raw HTML. Uses file handle data to determine if the content should be sanitized.
* @param props
* @returns
*/
export default function HtmlPreview(props: HtmlPreviewProps): import("react/jsx-runtime").JSX.Element;
export declare const EXPORTED_FOR_UNIT_TESTING: {
useCleanHtml: typeof useCleanHtml;
};
export {};
//# sourceMappingURL=HtmlPreview.d.ts.map