import React from 'react' import { ThemeConsumer } from '../context/ThemeContexts'; export default function CartItem ({item,value}) { const {id, title, img, price, total, count} = item; const {increment,decrement,removeItem} = value; return ( {({ theme }) => (
product
product : {title}
price : {price}
decrement(id)}>- {count} increment(id)}>+
{/**/}
removeItem(id)}>
item total : $ {total}
)}
) }