import NextHead from 'next/head'; import siteConfig from 'storage/site'; const prepareTitle = (givenTitle) => { givenTitle = givenTitle || siteConfig.title; return `${givenTitle} - ${siteConfig.name}`; }; const prepareDescription = (givenDescription) => { return givenDescription || siteConfig.description; }; const Helmet = (props) => ( { prepareTitle(props.title) } { /* Global Site Tag (gtag.js) - Google Analytics */ } { process.env.GA_SECRET && ( <>