diff --git a/frontend/src/components/core/Dashboard/Cart/Cart.jsx b/frontend/src/components/core/Dashboard/Cart/Cart.jsx new file mode 100644 index 0000000..b3a032a --- /dev/null +++ b/frontend/src/components/core/Dashboard/Cart/Cart.jsx @@ -0,0 +1,25 @@ +import { useSelector } from "react-redux" +import RenderCartCourses from "./RenderCartCourses" +import RenderTotalAmount from "./RenderTotalAmount" + + +export default function Cart() { + + const { total, totalItems } = useSelector((state) => state.cart) + + return ( + <> +

Cart

+

{totalItems} Courses in Cart

+ + {total > 0 ? ( +
+ + +
+ ) : (

Your cart is empty

)} + + + + +)} \ No newline at end of file