The Node.js® Website
at main 510 B view raw
1import type { FC, PropsWithChildren } from 'react'; 2 3import WithFooter from '@/components/withFooter'; 4import WithNavBar from '@/components/withNavBar'; 5import WithSidebar from '@/components/withSidebar'; 6import ArticleLayout from '@/layouts/Article'; 7 8const DefaultLayout: FC<PropsWithChildren> = ({ children }) => ( 9 <> 10 <WithNavBar /> 11 12 <ArticleLayout> 13 <WithSidebar navKeys={[]} /> 14 15 <main>{children}</main> 16 </ArticleLayout> 17 18 <WithFooter /> 19 </> 20); 21 22export default DefaultLayout;