text: import React from 'react'
  import PropTypes from 'prop-types'
  import { BlogPostTemplate } from '../../templates/blog-post'
  
  const BlogPostPreview = ({ entry, widgetFor }) => {
    const data = entry.get('data').toJS()
    return (
      <BlogPostTemplate
        content={data.body}
        description={entry.getIn(['data', 'description'])}
        tags={entry.getIn(['data', 'tags'])}
        title={entry.getIn(['data', 'title'])}
      />
    )
  }
  
  BlogPostPreview.propTypes = {
    entry: PropTypes.shape({
      getIn: PropTypes.func,
    }),
    widgetFor: PropTypes.func,
  }
  
  export default BlogPostPreview
  