import React from 'react'; import Helmet, { HelmetProps } from 'react-helmet'; import { useIntl } from 'gatsby-plugin-intl'; import { Location } from '@reach/router'; type Props = { /** Description text for the description meta tags */ description?: string; } & HelmetProps /** * An SEO component that handles all element in the head that can accept */ const SEO: React.FC = ({ children, description = '', title}) => { const metaDescription = description; const intl = useIntl() return ( {({ location }) => ( {/* OG tags */} {/* "summary" is the type of twitter card. Hardcoded string is OK here. */} {/* PWA tags */} {children} )} ); }; export default SEO