import { useMemo } from "react"; interface Props { html: string; baseUrl?: string; } export function WebPageViewer({ html, baseUrl }: Props) { const contentForIframe: string | undefined = useMemo(() => { if (baseUrl && html.includes("
")) { return html.replace(//gi, `