import * as React from 'react'; import { MenuSection } from '@atlaskit/navigation-next'; import pageInfo from '../../pages-list'; import NavHeader from './nav-header'; import TreeNavContent, { arrayToTreeItems } from './tree-nav-content'; const DocsNavContent = ({ docId }: { docId: string }) => { const treeData = { rootId: docId, items: pageInfo[docId] ? arrayToTreeItems(pageInfo[docId], { parentId: docId, parentTitle: docId, }) : {}, }; // NOTE this is not ideal - once we ahve better data mapping this should come // form the root. const homeUrl = pageInfo[docId][0] && pageInfo[docId][0].pagePath.split && pageInfo[docId][0].pagePath.split('/')[1] ? `/${pageInfo[docId][0].pagePath.split('/')[1]}` : docId; return ( <> {/* TODO: TSFix nav typing */} {({ className }: { className: string }) => ( {/* TODO: Hiding for the time being */} {/* */} {/* */} )} > ); }; export default DocsNavContent;