add link type to homeprops

This commit is contained in:
Triston Armstrong 2023-12-31 15:25:23 -06:00
parent 2f283f9c52
commit 3ab06bbc66

View File

@ -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<string, unknown>
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) {