aboutsummaryrefslogtreecommitdiff
path: root/src/theme
diff options
context:
space:
mode:
authorYasutake Yohei <yohei@yasutakeyohei.com>2023-12-30 22:24:55 +0900
committerYasutake Yohei <yohei@yasutakeyohei.com>2023-12-30 22:24:55 +0900
commit3fc0ee1b72c12922254533b78695ffa17e7232be (patch)
treef92d871e6720670f3fa98d9e28b9396a894d9135 /src/theme
parente18d8441d03746158a72029381d8fbdee39184b3 (diff)
initial commit
Diffstat (limited to 'src/theme')
-rw-r--r--src/theme/MDXComponents.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/theme/MDXComponents.js b/src/theme/MDXComponents.js
new file mode 100644
index 00000000..5af587d9
--- /dev/null
+++ b/src/theme/MDXComponents.js
@@ -0,0 +1,12 @@
+import React from 'react';
+// Import the original mapper
+import MDXComponents from '@theme-original/MDXComponents';
+import MessageBubble from '@site/src/components/MessageBubble';
+
+export default {
+ // Re-use the default mapping
+ ...MDXComponents,
+ // Map the "<MessageBubble>" tag to our MessageBubble component
+ // `MessageBubble` will receive all props that were passed to `<MessageBubble>` in MDX
+ MessageBubble,
+}; \ No newline at end of file