import * as React from 'react' ; import sidebarReference from 'sidebarReference.json' ; import { MarkdownPage , MarkdownProps } from './MarkdownPage' ; import { Page } from './Page' ; import { RouteItem } from './useRouteMeta' ; interface PageFrontmatter { title : string ; status : string ; } export default function withAPI ( p ) { function LayoutAPI ( props ) { return < MarkdownPage { ... props } meta = { p } / > ; } LayoutAPI . appShell = AppShell ; return LayoutAPI ; } function AppShell ( props ) { return < Page routeTree = { sidebarReference as RouteItem } { ... props } />; }