mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-06 11:48:46 +02:00
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
20 lines
497 B
TypeScript
20 lines
497 B
TypeScript
import ReactMarkdown from 'react-markdown';
|
|
import { chatMarkdownComponents, chatMarkdownRemarkPlugins } from '@renderer/lib/chatMarkdown';
|
|
|
|
interface MarkdownContentProps {
|
|
content: string;
|
|
}
|
|
|
|
export function MarkdownContent({ content }: MarkdownContentProps) {
|
|
return (
|
|
<div className="markdown-content">
|
|
<ReactMarkdown
|
|
components={chatMarkdownComponents}
|
|
remarkPlugins={chatMarkdownRemarkPlugins}
|
|
>
|
|
{content}
|
|
</ReactMarkdown>
|
|
</div>
|
|
);
|
|
}
|