import formatDate from 'date-fns/format' import { ActionItems, AuthorImage, EditGuide, GuideAuthor, GuideDate, GuideMeta, GuideSubtitle, GuideTitle, HeaderWrap, } from './style'; import { getContributionUrl } from "lib/guide"; import { getTwitterUrl } from "lib/url"; import { faClock, faEnvelope, faArrowLeft } from '@fortawesome/free-solid-svg-icons'; import { BadgeLink, BadgesList, PrimaryBadge, SecondaryBadge, DarkBadge } from 'components/badges'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; const GuideHeader = ({ guide, guide: { author = {} } = {} }) => ( { author.name } · { formatDate(new Date(guide.createdAt), 'EEEE, MMMM d yyyy') } · Improve this Guide { guide.title } { guide.description } Other Guides Send me Updates ); export default GuideHeader;