diff --git a/pages/notes/index.tsx b/pages/notes/index.tsx index c16d14d..5d41057 100644 --- a/pages/notes/index.tsx +++ b/pages/notes/index.tsx @@ -1,14 +1,14 @@ import Layout from "components/Layout"; import Util from 'lib/utils' import FolderTree from "components/FolderTree"; -import MDContent from "components/MDContent"; +import MDContent, { type LinkType } from "components/MDContent"; -interface HomeProps { +export interface HomeProps { content: string tree: Record flattenNodes: unknown[] - backLinks: unknown[] + backLinks: LinkType[] } // This trick is to dynamically load component that interact with window object (browser only) export default function Home({ content, tree, flattenNodes, backLinks }: HomeProps) {