import React, { Fragment, useState } from "react"; import Navbar2 from '../../components/Navbar2/Navbar2'; import PageTitle from "../../components/pagetitle/PageTitle"; import Scrollbar from "../../components/scrollbar/scrollbar"; import { Button, Grid } from "@mui/material"; import Link from "next/link"; import { connect } from "react-redux"; import { totalPrice } from "../../utils"; import { removeFromCart, incrementQuantity, decrementQuantity, } from "../../store/actions/action"; import Footer from "../../components/footer/Footer"; import { Tooltip } from 'react-tooltip' import 'react-tooltip/dist/react-tooltip.css' const CartPage = (props) => { const ClickHandler = () => { window.scrollTo(10, 0); }; const SubmitHandler = (e) => { e.preventDefault() }; const { carts } = props; const [delivery, deliveryCount] = useState(0); return (

Your Cart

There are {carts.length} products in this list

{carts && carts.length > 0 && carts.map((catItem, crt) => ( ))}
Product Price Quantity Subtotal Remove
  • {catItem.title}
  • {catItem.ratting}
${catItem.price}
${catItem.qty * catItem.price}

Cart Totals

Subtotal

${totalPrice(carts)}
Shipping
  • deliveryCount(delivery - delivery)}>
  • deliveryCount(delivery + 10)}>
  • Shipping options will be updated during checkout.

Total

${totalPrice(carts) + delivery}
Proceed To CheckOut