import React from "react"; const ContactEntry = ({heading, text}) =>

{ heading }

{ text }

; const ContactEntries = ({data}) => data && data.length > 0 ?
{data.map(({heading, text}) => )}
: ""; export default class ContactPreview extends React.Component { render() { const {entry, getAsset, widgetFor} = this.props; const entryContactEntries = entry.getIn(["data", "contact_entries"]); const contactEntries = entryContactEntries ? entryContactEntries.toJS() : []; return
{ widgetFor("body") }
; } }