text: import React from 'react'
  import PropTypes from 'prop-types'
  import {ContactPageTemplate} from '../../templates/contact-page'
  
  const ContactPagePreview = ({entry, getAsset}) => {
    const entryContacts = entry.getIn(['data', 'contacts'])
    const contacts = entryContacts
      ? entryContacts.toJS()
      : []
  
    return (<ContactPageTemplate
      title={entry.getIn(['data', 'title'])}
      subtitle={entry.getIn(['data', 'subtitle'])}
      meta_title={entry.getIn(['data', 'meta_title'])}
      meta_description={entry.getIn(['data', 'meta_description'])}
      contacts={contacts}/>)
  }
  
  ContactPagePreview.propTypes = {
    entry: PropTypes.shape({getIn: PropTypes.func}),
    getAsset: PropTypes.func
  }
  
  export default ContactPagePreview
  