import { useAppStore } from "@/lib/store"
import { TrashIcon } from "@heroicons/react/24/outline"
const Basket = () => {
const { cart, removeFromCart, updateCartQuantity } = useAppStore()
return(
{cart.map((i) => (
{i.event.title}
{i.title}
QTY:
updateCartQuantity(i.id, i.quantity - 1)}>-
{i.quantity}
updateCartQuantity(i.id, i.quantity + 1)}>+
{(i.price * i.quantity).toFixed(2)}
removeFromCart(i.id) }/>
))}
)
}
export default Basket