15 lines
347 B
TypeScript
15 lines
347 B
TypeScript
import React from 'react';
|
|
import ReactMarkdown from 'react-markdown';
|
|
import '../../styles/projector.css';
|
|
|
|
interface MarkdownViewerProps {
|
|
content: string;
|
|
}
|
|
|
|
export function MarkdownViewer({ content }: MarkdownViewerProps) {
|
|
return (
|
|
<div className="markdown-container">
|
|
<ReactMarkdown>{content}</ReactMarkdown>
|
|
</div>
|
|
);
|
|
}
|