From 40b3a4dc706849492123e41e57b0207cb95b9312 Mon Sep 17 00:00:00 2001
From: Ty Dunn <ty@tydunn.com>
Date: Sun, 18 Jun 2023 16:28:52 -0700
Subject: initial code

---
 extension/react-app/src/components/StyledCode.tsx | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 extension/react-app/src/components/StyledCode.tsx

(limited to 'extension/react-app/src/components/StyledCode.tsx')

diff --git a/extension/react-app/src/components/StyledCode.tsx b/extension/react-app/src/components/StyledCode.tsx
new file mode 100644
index 00000000..16183e7f
--- /dev/null
+++ b/extension/react-app/src/components/StyledCode.tsx
@@ -0,0 +1,14 @@
+import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
+import { synthwave84 } from "react-syntax-highlighter/dist/esm/styles/prism";
+
+interface StyledCodeProps {
+    children: string;
+}
+
+const StyledCode = (props: (StyledCodeProps)) => (
+  <SyntaxHighlighter language="auto" style={synthwave84}>
+    {props.children}
+  </SyntaxHighlighter>
+);
+
+export default StyledCode;
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

