import React from "react" import PropTypes from "prop-types" import { Map } from "immutable" const Poster = (props) => { const className = props.selected ? "border-primary thumbnail-selected" : "border-secondary"; return ( ); } Poster.propTypes = { data: PropTypes.instanceOf(Map), selected: PropTypes.bool, onClick: PropTypes.func, onDoubleClick: PropTypes.func, }; export default Poster;