const bindAll = require('lodash.bindall'); const PropTypes = require('prop-types'); const React = require('react'); const Video = require('../video/video.jsx'); const Spinner = require('../spinner/spinner.jsx'); const classNames = require('classnames'); require('./video-preview.scss'); class VideoPreview extends React.Component { constructor (props) { super(props); bindAll(this, [ 'handleShowVideo', 'handleVideoLoaded' ]); this.state = { videoOpen: false, spinnerVisible: false }; } handleShowVideo () { this.setState({ videoOpen: true, spinnerVisible: true }); } handleVideoLoaded () { this.setState({spinnerVisible: false}); } render () { return (