'use client'; import { useMemo } from 'react'; import type { InteractiveContent } from '@/lib/types/stage'; interface InteractiveRendererProps { readonly content: InteractiveContent; readonly mode: 'autonomous' | 'playback'; readonly sceneId: string; } export function InteractiveRenderer({ content, mode: _mode, sceneId }: InteractiveRendererProps) { const patchedHtml = useMemo( () => (content.html ? patchHtmlForIframe(content.html) : undefined), [content.html], ); return (