text: import React from "react"
  
  import Contributors from "../contributors"
  import Github from "../github"
  import Twitter from "../twitter"
  import Slack from "../slack"
  import ContributorGuest from "../contributorGuest"
  import './style.css';
  
  const HeaderBody = ({ title, subtitle, description, slug, contributors, featured }) => {
    const contributor = contributors ? contributors[0] : null;
    return (
      <>
        <header className="buttons">
          {!subtitle &&
          <h1
            style={{ marginBottom: "10px", marginTop: "0px" }}
            className="pio-docs-title"
          >
            {title}
          </h1>}
  
          {subtitle && <h1>{subtitle}</h1>}
  
          <p className="article-subhead">
            {description}
          </p>
  
          {!featured && <Contributors contributors={contributors} />}
  
          <Github
            pageTitle={title}
            path={slug}
          />
          <Twitter
            pageTitle={title}
            path={slug}
          />
          <Slack />
  
          {featured && <ContributorGuest contributor={contributor} />}
        </header>
      </>
    )
  }
  
  export default HeaderBody
  