import React from "react"; import format from "date-fns/format"; export default class PostPreview extends React.Component { render() { const {entry, getAsset, widgetFor} = this.props; let image = getAsset(entry.getIn(["data", "image"])); // Bit of a nasty hack to make relative paths work as expected as a background image here if (image && !image.fileObj) { image = window.parent.location.protocol + "//" + window.parent.location.host + image; } return
{entry.getIn(["data", "intro", "description"])}
{blurb.get("text")}
{entry.getIn(["data", "main", "description"])}
“{testimonial.get('quote')}”
{testimonial.get('author')}
{entry.getIn(['data', 'pricing', 'description'])}
${plan.get('price')}
-{plan.get('description')}
{item}