import React from "react"; import "./ListItem.scss"; import { withRouter } from "react-router"; import { IMAGE_BASE_URL, POSTER_SIZE } from "../../Config/config"; import { faTimes } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import imdb from "../../Assets/imdb.png"; import star from "../../Assets/star.png"; import { FixString } from "../../Utils/FixString"; import { removeItem } from "../../Redux/List/list-actions"; import { connect } from "react-redux"; import { compose } from "redux"; const ListItem = ({ item, history, removeItem }) => { const { id, title, poster_path, vote_average, name } = item; var titlePath = title ? FixString(title) : null; var namePath = name ? FixString(name) : null; return (