2019-10-02 13:35:50 +02:00
|
|
|
import React, { ReactElement } from 'react'
|
|
|
|
import Typekit from './atoms/Typekit'
|
|
|
|
import Header from './organisms/Header'
|
|
|
|
import Footer from './organisms/Footer'
|
2021-03-14 01:34:04 +01:00
|
|
|
import { document, content } from './Layout.module.css'
|
2019-10-02 13:35:50 +02:00
|
|
|
|
|
|
|
// 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
|
|
|
// }
|
|
|
|
|
2020-07-11 10:29:42 +02:00
|
|
|
export default function Layout({ children }: { children: any }): ReactElement {
|
2019-10-02 13:35:50 +02:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<Typekit />
|
|
|
|
<Header />
|
|
|
|
|
2021-03-14 01:34:04 +01:00
|
|
|
<main className={document} id="document">
|
|
|
|
<div className={content}>{children}</div>
|
2019-10-02 13:35:50 +02:00
|
|
|
</main>
|
|
|
|
|
|
|
|
<Footer />
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|