leonmargaritis feaa87a9c8
feat: init commercetools setup (#1)
* feat: init commercetools setup

---------

Co-authored-by: Anja-Janina Stiefermann <anja.stiefermann@kernpunkt.de>
2023-11-17 11:39:54 +01:00

15 lines
307 B
TypeScript

import { getCart } from "lib/shopify";
import { cookies } from "next/headers";
import CartModal from "./modal";
export default async function Cart() {
const cartId = cookies().get("cartId")?.value;
let cart;
if (cartId) {
cart = await getCart(cartId);
}
return <CartModal cart={cart} />;
}