UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

24 lines 710 B
/** * @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