diff --git a/components/MDContent.js b/components/MDContent.js
new file mode 100644
index 0000000..f6d22c2
--- /dev/null
+++ b/components/MDContent.js
@@ -0,0 +1,17 @@
+import React from 'react';
+import Alert from '@mui/material/Alert';
+import AlertTitle from '@mui/material/AlertTitle';
+
+function MDContent({content}) {
+ return (
+
+
+ Want to know more?
+ 🌱 Follow or DM me on Twitter at @tuancm
+
+
+
+ );
+}
+
+export default MDContent;
\ No newline at end of file
diff --git a/components/layout.js b/components/layout.js
index af6220e..1dcd1e7 100644
--- a/components/layout.js
+++ b/components/layout.js
@@ -2,7 +2,7 @@ import Head from 'next/head'
// import BasicTree from 'lib/MyFolderTree'
export const siteTitle = 'Digital Backroom - An Internet Archive'
import {Box} from '@mui/material'
-export default function Layout({children, home}) {
+export default function Layout({children}) {
return (
diff --git a/pages/index.js b/pages/index.js
index 998a399..e013c6c 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -1,24 +1,17 @@
import Layout from "../components/layout";
import {getSinglePost, getDirectoryData, convertObject, getFlattenArray} from "../lib/utils";
import FolderTree from "../components/FolderTree";
-import Alert from '@mui/material/Alert';
-import AlertTitle from '@mui/material/AlertTitle';
+import MDContent from "../components/MDContent";
export default function Home({content, tree, flattenNodes}) {
return (
-
+
-
-
- Want to know more?
- 🌱 Follow or DM me on Twitter at @tuancm
-
-
-
+
);
diff --git a/pages/note/[id].js b/pages/note/[id].js
index 1f82227..a66a5b3 100644
--- a/pages/note/[id].js
+++ b/pages/note/[id].js
@@ -3,12 +3,11 @@ import Layout from "../../components/layout";
import {getPostListData, getSinglePost, getGraphData, convertObject, getDirectoryData} from "../../lib/utils";
import FolderTree from "../../components/FolderTree";
import {getFlattenArray} from "../../lib/utils";
-import Alert from '@mui/material/Alert';
-import AlertTitle from '@mui/material/AlertTitle';
+import MDContent from "../../components/MDContent";
-export default function Home({ note, graphdata,tree, flattenNodes, ...props }) {
+export default function Home({ note, graphdata,tree, flattenNodes}) {
return (
-
+
{note.title && }
@@ -16,13 +15,7 @@ export default function Home({ note, graphdata,tree, flattenNodes, ...props }) {
-
-
- Want to know more?
- 🌱 Follow or DM me on Twitter at @tuancm
-
-
-
+