1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-23 01:36:26 +02:00
blog/src/helpers/wrapPageElement.tsx
Matthias Kretschmann 0aaf874538
refactor (#733)
* refactor

* fixes

* fixes

* fix

* package updates
2022-11-11 02:31:54 +00:00

12 lines
351 B
TypeScript

import type { GatsbyBrowser, GatsbySSR } from 'gatsby'
import React, { ReactElement } from 'react'
import Layout from '../components/Layout'
const wrapPageElement:
| GatsbyBrowser['wrapPageElement']
| GatsbySSR['wrapPageElement'] = ({ element, props }): ReactElement => (
<Layout {...props}>{element}</Layout>
)
export default wrapPageElement