const classNames = require('classnames'); const PropTypes = require('prop-types'); const React = require('react'); const VideoPreview = require('../video-preview/video-preview.jsx'); require('./timeline-card.scss'); const TimelineCard = props => (
{props.date}

{props.title}

{props.text}

{props.videoId && } {!props.videoId && } {props.attribution &&

{props.attribution}

}
); TimelineCard.propTypes = { link: PropTypes.string, date: PropTypes.string, title: PropTypes.string, text: PropTypes.string, image: PropTypes.string, videoId: PropTypes.string, attribution: PropTypes.string, className: PropTypes.string }; module.exports = TimelineCard;