text: import React from 'react';  
  
  import CardInfo from './CardInfo';
  
  function Card(props){
  
  
  
      return(
          <div className='d-inline-block m-card' onClick={(e)=>props.click(props.item)}>
              <img className='m-card-image' src={props.item.imgSrc} alt={props.item.imgSrc}/>
              { props.item.selected && <CardInfo title={props.item.title} subTitle={props.item.subTitle} link={props.item.link} />}
          </div>
      )
  
  }
  
  export default Card