import React from 'react' ; import { AppProps } from 'next/app' ; import { DefaultSeo } from 'next-seo' ; import '../styles/index.css' ; import { useAnalytics } from '../hooks/use-analytics' ; import { OpenGraph } from '../_data/social-media' ; export default function App ( { Component , pageProps } ) { useAnalytics ( ) ; return ( < > < DefaultSeo { ... OpenGraph } / > < Component { ... pageProps } / > < />); }