The Node.js® Website
1import type { FC, PropsWithChildren } from 'react';
2
3import WithFooter from '@/components/withFooter';
4import WithNavBar from '@/components/withNavBar';
5
6import styles from './layouts.module.css';
7
8const CenteredLayout: FC<PropsWithChildren> = ({ children }) => (
9 <>
10 <WithNavBar />
11
12 <div className={styles.centeredLayout}>{children}</div>
13
14 <WithFooter />
15 </>
16);
17
18export default CenteredLayout;