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