text: import PropTypes from 'prop-types';
  import React from 'react';
  import {SEO} from 'gatsby-theme-guide-core';
  
  export default function CustomSEO({image, twitterHandle, ...props}) {
    return (
      <SEO {...props} twitterCard={image ? 'summary_large_image' : 'summary'}>
        {image && <meta property="og:image" content={image} />}
        {twitterHandle && (
          <meta name="twitter:site" content={`@${twitterHandle}`} />
        )}
      </SEO>
    );
  }
  
  CustomSEO.propTypes = {
    image: PropTypes.string,
    twitterHandle: PropTypes.string
  };
  