1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-02 06:07:09 +01:00
blog/src/components/Layout.tsx

35 lines
854 B
TypeScript
Raw Normal View History

2019-10-02 13:35:50 +02:00
import React, { ReactElement } from 'react'
import Container from './atoms/Container'
import Typekit from './atoms/Typekit'
import Header from './organisms/Header'
import Footer from './organisms/Footer'
import styles from './Layout.module.scss'
// if (process.env.NODE_ENV !== 'production') {
2019-11-18 22:33:51 +01:00
// // eslint-disable-next-line
// const whyDidYouRender = require('@welldone-software/why-did-you-render/dist/no-classes-transpile/umd/whyDidYouRender.min.js')
// whyDidYouRender(React)
2019-10-02 13:35:50 +02:00
// }
export default function Layout({
children
}: {
location?: Location
children: any
}): ReactElement {
return (
<>
<Typekit />
<Header />
<main className={styles.document} id="document">
<div className={styles.content}>
<Container>{children}</Container>
</div>
</main>
<Footer />
</>
)
}