File size: 566 Bytes
01d5a5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Markdown from '@/components/Markdown';
import { useEffect, useState } from 'react';
import type { ReactElement } from 'react';

const Content = (): ReactElement => {
  const [markdownContent, setMarkdownContent] = useState<string>('');

  useEffect(() => {
    fetch('/docs/mcp_content.md')
      .then((response) => response.text())
      .then((text) => setMarkdownContent(text));
  }, []);

  return (
    <div className="p-4 h-full w-full markdown-wrapper">
      <Markdown markdownContent={markdownContent} />
    </div>
  );
};

export default Content;