mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
16 lines
332 B
TypeScript
16 lines
332 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;
|
|
const cartId = '1';
|
|
let cart;
|
|
|
|
if (cartId) {
|
|
cart = await getCart(cartId);
|
|
}
|
|
|
|
return <CartModal cart={cart} />;
|
|
}
|