import { useMemo } from 'react'; interface Props { body: string; contentType: string; url: string; } export function Webview({ body, url, contentType }: Props) { const contentForIframe: string | undefined = useMemo(() => { if (!contentType.includes('html')) return; if (body.includes('
')) { return body.replace(//gi, `