fix: added renderer in answer bubble

This commit is contained in:
asminkarki012
2025-04-21 20:50:04 +05:45
parent c5a8f3abcd
commit ea0aa64330
3 changed files with 15 additions and 14 deletions

View File

@@ -3,11 +3,7 @@ import mermaid from 'mermaid';
import CopyButton from './CopyButton';
import { useSelector } from 'react-redux';
import { selectStatus } from '../conversation/conversationSlice';
interface MermaidRendererProps {
code: string;
isDarkTheme: boolean;
}
import { MermaidRendererProps } from './types';
const MermaidRenderer: React.FC<MermaidRendererProps> = ({
code,

View File

@@ -22,3 +22,8 @@ export type InputProps = {
e: React.KeyboardEvent<HTMLTextAreaElement | HTMLInputElement>,
) => void;
};
export type MermaidRendererProps = {
code: string;
isDarkTheme: boolean;
};