{"size": 995, "ext": "js", "max_stars_repo_path": "Ecomm-proj - Copy/src/Components/Cart/Item.js", "max_stars_repo_name": "Varsha-Shivhare/React", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Ecomm-proj - Copy/src/Components/Cart/Item.js", "max_issues_repo_name": "Varsha-Shivhare/React", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Ecomm-proj - Copy/src/Components/Cart/Item.js", "max_forks_repo_name": "Varsha-Shivhare/React", "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": 32.0967741935, "max_line_length": 89, "alphanum_fraction": 0.3949748744}
import React from 'react'
import './Cart.css';

const Item = ({id, title, price, img, quantity}) => {
    return (
        <>
            <div className='items-info'>         
                <div className='product-img'>
                    <img src={img} alt='' />
                </div>
                <div className='title'>
                    <h2>{title}</h2>
                </div>
                <div className='add-minus-quantity'>
                    <i className="fas fa-minus minus"></i>
                    <input type='text' placeholder={quantity} />
                    <i className="fas fa-plus add"></i>
                </div>
                <div className='price'>
                    <h3>{price}</h3>
                </div>
                <div className='remove-item'>
                    <i className="fas fa-trash-alt remove" onClick={removeItem(id)}></i>
                </div>
            </div>
        </>
    )
}

export default Item;
