import Layout from "../components/layout"; import {getSinglePost, getDirectoryData, convertObject, getFlattenArray, getGraphData} from "../lib/utils"; import FolderTree from "../components/FolderTree"; import MDContainer from "../components/MDContainer"; import dynamic from 'next/dynamic' // This trick is to dynamically load component that interact with window object (browser only) const DynamicGraph = dynamic( () => import('../components/Graph'), { loading: () =>
Loading ...
, ssr: false } ) export default function Home({graphData, content, tree, flattenNodes}) { return (