The Node.js® Website
at main 771 B view raw
1import type { FC, PropsWithChildren } from 'react'; 2 3import WithBreadcrumbs from '@/components/withBreadcrumbs'; 4import WithMetaBar from '@/components/withMetaBar'; 5import WithNavBar from '@/components/withNavBar'; 6import WithProgressionSidebar from '@/components/withProgressionSidebar'; 7import WithSidebarCrossLinks from '@/components/withSidebarCrossLinks'; 8import ArticleLayout from '@/layouts/Article'; 9 10const LearnLayout: FC<PropsWithChildren> = ({ children }) => ( 11 <> 12 <WithNavBar /> 13 14 <ArticleLayout> 15 <WithProgressionSidebar navKey="learn" /> 16 17 <main> 18 {children} 19 20 <WithSidebarCrossLinks navKey="learn" /> 21 </main> 22 23 <WithMetaBar /> 24 25 <WithBreadcrumbs /> 26 </ArticleLayout> 27 </> 28); 29 30export default LearnLayout;