From d4d1c2bbabfcec3c62767e614c9d67f516938af2 Mon Sep 17 00:00:00 2001
From: AAGaming <aa@mail.catvibers.me>
Date: Fri, 26 Aug 2022 01:18:28 -0400
Subject: basic patch notes viewer, lazy-load settings and store, build
 frontend as esmodule, add lazy-loaded react-markdown, backend changes to
 accomodate ESModule frontend

---
 frontend/src/components/Markdown.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 frontend/src/components/Markdown.tsx

(limited to 'frontend/src/components/Markdown.tsx')

diff --git a/frontend/src/components/Markdown.tsx b/frontend/src/components/Markdown.tsx
new file mode 100644
index 00000000..7b187f14
--- /dev/null
+++ b/frontend/src/components/Markdown.tsx
@@ -0,0 +1,9 @@
+import { FunctionComponent } from 'react';
+import ReactMarkdown, { Options as ReactMarkdownOptions } from 'react-markdown';
+import remarkGfm from 'remark-gfm';
+
+const Markdown: FunctionComponent<ReactMarkdownOptions> = (props) => {
+  return <ReactMarkdown remarkPlugins={[remarkGfm]} {...props} />;
+};
+
+export default Markdown;
-- 
cgit v1.2.3

