import './_commonjsHelpers-0c4b6f40.js';
import React from 'react';
import './index-51a80699.js';
import urlFor from './urlFor.js';
import { c as clean_html_1 } from './entities-7cc3bf45.js';
import { Card } from 'react-bootstrap';

var Hero = function Hero(_ref) {
  var data = _ref.data,
      client = _ref.client,
      imageHeight = _ref.imageHeight,
      imageWidth = _ref.imageWidth;
  var title = data.title,
      summary = data.summary,
      thumbnail = data.thumbnail,
      url = data.url;

  return React.createElement(
    'a',
    { href: '/view/' + url.current },
    React.createElement(
      Card,
      { bsPrefix: 'hero-card' },
      title && React.createElement(
        Card.Header,
        { className: 'h4' },
        title
      ),
      thumbnail && client && React.createElement(Card.Img, { src: urlFor({ source: thumbnail, client: client, imageHeight: imageHeight, imageWidth: imageWidth }), alt: title }),
      summary && React.createElement(
        Card.Footer,
        { className: 'h6' },
        clean_html_1(summary)
      )
    )
  );
};

export default Hero;
