+
+
+
Pizza {props.name}
+
{props.desc}
+
Ingredientes:
+
+ {props.ingredients.map((i, index) => (
+ - - {i}
+ ))}
+
+
+
+ ${props.price.toLocaleString("es-CL")}
+
+
+
+ Ver más
+
+
+
+
+ );
+};
export default CardPizza;
diff --git a/src/context/CartContext.jsx b/src/context/CartContext.jsx
new file mode 100644
index 0000000..c2923e0
--- /dev/null
+++ b/src/context/CartContext.jsx
@@ -0,0 +1,14 @@
+import { createContext, useState } from "react";
+
+export const CartContext = createContext();
+
+const CartProvider = ({ children }) => {
+ const [cart, setCart] = useState([]);
+ return (
+