add link type to homeprops
This commit is contained in:
parent
2f283f9c52
commit
3ab06bbc66
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user