Error rendering flowchart.
`;\n }\n }\n }\n renderMermaid();\n }, [activeTab, mermaidCode, themeState.mode]);\n\n\n const handleScroll = () => {\n if (preRef.current && textareaRef.current) {\n preRef.current.scrollTop = textareaRef.current.scrollTop;\n preRef.current.scrollLeft = textareaRef.current.scrollLeft;\n }\n };\n\n const highlightedCode = useMemo(() => simpleSyntaxHighlight(code), [code]);\n\n const renderTabContent = () => {\n if (!explanation) return null;\n switch(activeTab) {\n case 'summary':\n returnLines: {item.lines}
\n{item.explanation}
\nTime Complexity: {explanation.complexity.time}
\nSpace Complexity: {explanation.complexity.space}
\nGet a detailed, structured analysis of any code snippet.
\n{error}
}\n {explanation && !isLoading && renderTabContent()}\n {!isLoading && !explanation && !error &&