import NextHead from 'next/head'; import siteConfig from 'data/site'; import { GA_TRACKING_ID } from 'lib/gtag'; 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 */ }