import React from 'react'; import { Helmet } from 'react-helmet-async'; import { useStaticQuery, graphql } from 'gatsby'; interface Props { description?: string; lang?: string; title?: string; } export default ({ description = ``, title }: Props) => { const query = useStaticQuery( graphql` query { site { siteMetadata { author defaultTitle } } } `, ); const site = query ? query.site : {}; const metaDescription = description; return ( ); };