-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathLearn.tsx
More file actions
40 lines (32 loc) · 1.08 KB
/
Learn.tsx
File metadata and controls
40 lines (32 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import type { FC, PropsWithChildren } from 'react';
import WithBreadcrumbs from '@/components/withBreadcrumbs';
import WithFooter from '@/components/withFooter';
import WithMetaBar from '@/components/withMetaBar';
import WithNavBar from '@/components/withNavBar';
import WithProgressionSidebar from '@/components/withProgressionSidebar';
import WithSidebarCrossLinks from '@/components/withSidebarCrossLinks';
import ArticleLayout from '@/layouts/Article';
import styles from '/components/Containers/Footer/index.module.css';
const LearnLayout: FC<PropsWithChildren> = ({ children }) => (
<>
<WithNavBar />
<ArticleLayout>
<WithProgressionSidebar navKey="learn" />
<div>
<main>
{children}
<WithSidebarCrossLinks navKey="learn" />
</main>
<WithMetaBar />
<div className={styles.mobileFooter}>
<WithFooter />
</div>
</div>
<WithBreadcrumbs navKeys={['learn']} />
</ArticleLayout>
<div className={styles.desktopFooter}>
<WithFooter />
</div>
</>
);
export default LearnLayout;