import React from 'react' import { useStaticQuery, graphql } from 'gatsby' import PropTypes from 'prop-types' import { Helmet } from 'react-helmet' function Seo(props) { const { site } = useStaticQuery( graphql` query { site { siteMetadata { title description } } } ` ) const defaultDesc = props.description || site.siteMetadata.description const defaultTitle = site.siteMetadata?.title return ( ) } Seo.defaultProps = { lang: 'en', meta: [], embedColor: '#9517cf' } Seo.propTypes = { description: PropTypes.string, lang: PropTypes.string, meta: PropTypes.arrayOf(PropTypes.object), title: PropTypes.string, embedColor: PropTypes.string } export default Seo