mirror of https://github.com/kremalicious/blog.git
27 lines
747 B
TypeScript
27 lines
747 B
TypeScript
import React, { ReactElement } from 'react'
|
|
import Typekit from './atoms/Typekit'
|
|
import Header from './organisms/Header'
|
|
import Footer from './organisms/Footer'
|
|
import * as styles from './Layout.module.css'
|
|
|
|
// if (process.env.NODE_ENV !== 'production') {
|
|
// // eslint-disable-next-line
|
|
// const whyDidYouRender = require('@welldone-software/why-did-you-render/dist/no-classes-transpile/umd/whyDidYouRender.min.js')
|
|
// whyDidYouRender(React)
|
|
// }
|
|
|
|
export default function Layout({ children }: { children: any }): ReactElement {
|
|
return (
|
|
<>
|
|
<Typekit />
|
|
<Header />
|
|
|
|
<main className={styles.document} id="document">
|
|
<div className={styles.content}>{children}</div>
|
|
</main>
|
|
|
|
<Footer />
|
|
</>
|
|
)
|
|
}
|