import 'react-toastify/dist/ReactToastify.css' ; import Head from 'next/head' ; import { ReactElement , useEffect } from 'react' ; import { initGA , logPageView } from '../../utils/analytics' ; import { SITE_FAVICON } from '../../utils/branding' ; declare global { interface Window { GA_INITIALIZED : boolean ; } } const Heading = ( ) : ReactElement => { useEffect ( ( ) => { if ( ! window . GA_INITIALIZED ) { initGA ( ) ; window . GA_INITIALIZED = true ; } logPageView ( ) ; } , [ ] ) ; return ( < Head > < meta charSet = "utf-8" / > < meta name = "viewport" content = "initial-scale=1.0" / > < meta name = "theme-color" content = "#ffffff" / > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" / > < link rel = "shortcut icon" href = { SITE_FAVICON } / > < link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.0/css/bulma.min.css" integrity = "sha256-aPeK/N8IHpHsvPBCf49iVKMdusfobKo2oxF8lRruWJg=" crossOrigin = "anonymous" / > < link href = "https://fonts.googleapis.com/css?family=Roboto&display=swap" rel = "stylesheet" / > < link href = "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel = "stylesheet" / > < link href = "https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600;1,700;1,800&display=swap" rel = "stylesheet" / > < script src = "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity = "sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossOrigin = "anonymous" / > < /Head>); } ; export default Heading ;