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"; const GuideHeader = ({ guide, guide: { author = {} } = {} }) => ( { author.name } · { formatDate(new Date(guide.createdAt), 'EEEE, MMMM d yyyy') } · Improve this Guide { guide.title } { guide.description } ); export default GuideHeader;