2024-10-11 16:38:38 -04:00
|
|
|
import { useState } from "react";
|
2024-10-14 07:23:02 -04:00
|
|
|
import { Outlet } from "react-router-dom";
|
2024-10-18 07:18:29 -04:00
|
|
|
import "./css/App.css";
|
2024-10-11 16:38:38 -04:00
|
|
|
import Navbar from "./components/navbar";
|
|
|
|
|
|
|
|
function App() {
|
2024-10-14 07:23:02 -04:00
|
|
|
const [cart, setCart] = useState({});
|
2024-10-14 20:56:58 -04:00
|
|
|
const [items, setItems] = useState(null);
|
2024-10-11 16:38:38 -04:00
|
|
|
return (
|
|
|
|
<>
|
2024-10-14 07:23:02 -04:00
|
|
|
<Navbar cartItems={cart} />
|
2024-10-14 20:56:58 -04:00
|
|
|
<Outlet context={[cart, setCart, items, setItems]} />
|
2024-10-11 16:38:38 -04:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|