mirror of
https://github.com/kremalicious/blog.git
synced 2024-06-30 05:31:56 +02:00
13 lines
256 B
TypeScript
13 lines
256 B
TypeScript
import React, { ReactElement } from 'react'
|
|
import Layout from '../components/Layout'
|
|
|
|
const wrapPageElement = ({
|
|
element,
|
|
props
|
|
}: {
|
|
element: any
|
|
props: any
|
|
}): ReactElement => <Layout {...props}>{element}</Layout>
|
|
|
|
export default wrapPageElement
|