2025-03-30 16:42:51 -03:00
|
|
|
import React from 'react';
|
2025-03-30 19:04:24 -03:00
|
|
|
import ReactMarkdown from 'react-markdown';
|
|
|
|
import '../../styles/projector.css';
|
2025-03-30 16:42:51 -03:00
|
|
|
|
|
|
|
interface MarkdownViewerProps {
|
|
|
|
content: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function MarkdownViewer({ content }: MarkdownViewerProps) {
|
|
|
|
return (
|
2025-03-30 19:04:24 -03:00
|
|
|
<div className="markdown-container">
|
|
|
|
<ReactMarkdown>{content}</ReactMarkdown>
|
|
|
|
</div>
|
2025-03-30 16:42:51 -03:00
|
|
|
);
|
|
|
|
}
|