text: import React from 'react'
  import PropTypes from 'prop-types'
  import { DogsPageTemplate } from '../../templates/dogs-page'
  
  const DogsPagePreview = ({ entry, getAsset }) => {
    const entryBlurbs = entry.getIn(['data', 'intro', 'blurbs'])
    const blurbs = entryBlurbs ? entryBlurbs.toJS() : []
  
    return (
      <DogsPageTemplate
        image={entry.getIn(['data', 'image'])}
        title={entry.getIn(['data', 'title'])}
        heading={entry.getIn(['data', 'heading'])}
        description={entry.getIn(['data', 'description'])}
        intro={{ blurbs }}
        fullImage={entry.getIn(['data', 'full_image'])}
      />
    )
  }
  
  DogsPagePreview.propTypes = {
    entry: PropTypes.shape({
      getIn: PropTypes.func,
    }),
    getAsset: PropTypes.func,
  }
  
  export default DogsPagePreview
  