From f5c21698a09d9214f57ce6dab2595f3d61e1ff11 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Thu, 7 Jan 2021 13:22:21 +0300
Subject: feat!: use react-markdown

---
 src/lib/Markdown/InlineCode.tsx | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 src/lib/Markdown/InlineCode.tsx

(limited to 'src/lib/Markdown/InlineCode.tsx')

diff --git a/src/lib/Markdown/InlineCode.tsx b/src/lib/Markdown/InlineCode.tsx
new file mode 100644
index 0000000..c51f924
--- /dev/null
+++ b/src/lib/Markdown/InlineCode.tsx
@@ -0,0 +1,18 @@
+import React from 'react';
+import { makeStyles } from '@material-ui/core';
+
+const useStyles = makeStyles(theme => ({
+  root: {
+    background: theme.palette.background.default,
+    borderRadius: theme.spacing(0.5),
+    padding: theme.spacing(0.5),
+    fontFamily: 'Monospace',
+  },
+}));
+
+const InlineCode: React.FC = ({ children }) => {
+  const classes = useStyles();
+  return <span className={classes.root}>{children}</span>;
+};
+
+export default InlineCode;
-- 
cgit v1.2.3

