import { AlignLeft, ChevronDown, ChevronRight } from 'lucide-react' import { PropsWithChildren, useEffect, useRef, useState } from 'react' import { useDarkModeContext } from "../../../contexts/DarkModeContext" import { t } from '../../../lang/helpers' import { MemoizedSyntaxHighlighterWrapper } from "./SyntaxHighlighterWrapper" export default function MarkdownPlanBlock({ planContent, }: PropsWithChildren<{ planContent: string }>) { const { isDarkMode } = useDarkModeContext() const containerRef = useRef(null) const [isOpen, setIsOpen] = useState(false) useEffect(() => { if (containerRef.current) { containerRef.current.scrollTop = containerRef.current.scrollHeight } }, [planContent]) return ( planContent && (
{t('chat.reactMarkdown.plan')}
{planContent}
) ) }