{"size": 589, "ext": "js", "max_stars_repo_path": "app/components/movies-item/ImagesMovie.js", "max_stars_repo_name": "dionfananie/react-movie", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/components/movies-item/ImagesMovie.js", "max_issues_repo_name": "dionfananie/react-movie", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/components/movies-item/ImagesMovie.js", "max_forks_repo_name": "dionfananie/react-movie", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.3103448276, "max_line_length": 73, "alphanum_fraction": 0.5093378608}
import React from 'react'
import ContentLoader, { List } from 'react-content-loader'

const MyLoader = () => <ContentLoader />

const showImage = ({image}) =>{
    if (!image) {
        return(
            <MyLoader/>
        )
    }
    return (
            <div className="card">
                <img className="img__movie" src={image.image.original} />
            </div>
        )
}

const Images = (props) =>{
    return(
        <div className="col-md-4 my-4 card__detail-movies" key="1">
            {showImage(props)}
        </div>
        
       
    )
}

export default Images;