mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-14 21:10:41 +01:00
15 lines
310 B
JavaScript
15 lines
310 B
JavaScript
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import Layout from '../components/Layout'
|
|
|
|
const wrapPageElement = ({ element, props }) => (
|
|
<Layout {...props}>{element}</Layout>
|
|
)
|
|
|
|
wrapPageElement.propTypes = {
|
|
element: PropTypes.any,
|
|
props: PropTypes.any
|
|
}
|
|
|
|
export default wrapPageElement
|