import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import metadata from '../../metadata'

import './index.css'

const TemplateWrapper = ({ children }) => (
  <div>
    <Helmet title={metadata.title} />
    <main>{children()}</main>
  </div>
)

TemplateWrapper.propTypes = {
  children: PropTypes.func,
  location: PropTypes.shape({
    pathname: PropTypes.string,
  }).isRequired,
}

TemplateWrapper.defaultProps = {
  children: () => {},
}

export default TemplateWrapper

@@ -343,87 +343,8 @@
 nc,%0A
-  location: PropTypes.shape(%7B%0A    pathname: PropTypes.string,%0A  %7D).isRequired,%0A
 %7D%0A%0AT

Fix redundant PropType