import React from 'react' import { dateFormat } from '../lib/date' import { Share } from './Share' const Tag = ({ children }) => (
  • {children}
  • ) const TagList = ({ tags }) => ( ) const Head = ({ date, tags = [], children }) => (

    {children}

    {!date ? null : (

    {dateFormat(date)}

    )} {!(tags.length) ? null : ( )}
    ) const Article = ({ children, date, tags, title, shareable }) => (
    {title}
    {children}
    {!shareable ? null : ( )}
    ) export default Article