diff --git a/components/MDContainer.js b/components/MDContainer.js
new file mode 100644
index 0000000..a20f425
--- /dev/null
+++ b/components/MDContainer.js
@@ -0,0 +1,24 @@
+import React, {useState} from 'react';
+import MDContent from "./MDContent";
+import {v4 as uuidv4} from 'uuid';
+
+function MDContainer({post}) {
+ const [posts, setPosts] = useState([post]);
+
+ function handleClick(content) {
+ console.log(content)
+ setPosts(prevPosts => {
+ return [...prevPosts, content]
+ })
+ }
+
+ return (
+
+ {posts.map(p => (
+
+ ))}
+
+ );
+}
+
+export default MDContainer;
\ No newline at end of file
diff --git a/components/MDContent.js b/components/MDContent.js
index f6d22c2..b4280fb 100644
--- a/components/MDContent.js
+++ b/components/MDContent.js
@@ -1,15 +1,26 @@
import React from 'react';
import Alert from '@mui/material/Alert';
import AlertTitle from '@mui/material/AlertTitle';
+import {useRouter} from 'next/router'
-function MDContent({content}) {
+function MDContent({content, handleOpenNewContent}) {
+
+ function handleInternalLinkClick() {
+ //Processing fetching
+ //pass result up to parent container
+ //TODO: handle clicking on internal link, go fetching md content from file then passing it up to parent
+ handleOpenNewContent(content)
+ }
+ const router = useRouter();
return (
+
Want to know more?
🌱 Follow or DM me on Twitter at @tuancm
+