text: import React from 'react'
  import PropTypes from 'prop-types'
  import ArticleTemplate from '../../components/ArticleTemplate'
  
  const ArticlePreview = ({entry, widgetFor}) => (
    <ArticleTemplate
      content={widgetFor('body')}
      cover={entry.getIn(['data', 'cover'])}
      meta_title={entry.getIn(['data', 'meta_title'])}
      meta_desc={entry.getIn(['data', 'meta_description'])}
      tags={entry.getIn(['data', 'tags'])}
      title={entry.getIn(['data', 'title'])}
      slug={entry.getIn(['data', 'slug'])}
    />
  )
  
  ArticlePreview.propTypes = {
    entry: PropTypes.shape({
      getIn: PropTypes.func,
    }),
    widgetFor: PropTypes.func,
  }
  
  export default ArticlePreview
  