'use strict'; const React = require('react'); const PropTypes = require('prop-types'); const moment = require('moment'); const Layout = require('./layout.jsx'); const Release = ({ release, thumbnails }) => (

{release.title}

{moment(release.date).format('MMMM DD, YYYY')}

{release.shootId}

{release.site.name}

{release.network.name}

View on {new URL(release.site.url).host.replace('www.', '')}

{release.description}

{thumbnails.map((thumbnail, index) => ( {`Thumbnail ))}
); Release.propTypes = { release: PropTypes.object, thumbnails: PropTypes.arrayOf(PropTypes.string), }; Release.defaultProps = { release: null, thumbnails: [], }; module.exports = Release;