import HeadSection from '../HeadSection';
const HeadSocial = function HeadSocial(props) {
  const {
    seo,
    embed,
    opinion,
    social
  } = props;
  if (!seo || !social) {
    return null;
  }
  return <HeadSection active={!embed}>
      <meta key="description" name="description" content={seo.description} />
      <meta key="twitter:card" property="twitter:card" content="summary_large_image" />
      <meta key="og:type" property="og:type" content="article" />
      <meta key="article:opinion" property="article:opinion" content={opinion} />
      <meta key="twitter:site" property="twitter:site" content="@politico" />
      <meta key="twitter:creator" property="twitter:creator" content="@politico" />
      <meta key="article:author" property="article:author" content="https://www.facebook.com/politico" />
      <meta key="fb:app_id" property="fb:app_id" content="114037015331397" />
      <meta key="twitter:title" property="twitter:title" content={social.card_title} />
      <meta key="og:title" property="og:title" content={social.card_title} />
      <meta key="twitter:description" property="twitter:description" content={social.card_description_twitter} />
      <meta key="og:description" property="og:description" content={social.card_description_fbook} />
      <meta key="twitter:image" property="twitter:image" content={social.image.url} />
      <meta key="twitter:image:alt" property="twitter:image:alt" content={social.card_title} />
      <meta key="og:image" property="og:image" content={social.image.url} />
      <meta key="og:image:type" property="og:image:type" content={social.image.type} />
    </HeadSection>;
};
export default HeadSocial;