import { decrease, increase, removeFromCart } from 'store' import { useDispatch } from 'react-redux' import { Icons } from 'components' import { formatNumber } from 'utils' const CartButtons = props => { //? Props const { item } = props //? Assets const dispatch = useDispatch() //? Render(s) return (
{formatNumber(item.quantity)} {item.quantity === 1 ? ( ) : ( )}
) } export default CartButtons