import { retrieveCart } from "@lib/data/cart" import { retrieveCustomer } from "@lib/data/customer" import PaymentWrapper from "@modules/checkout/components/payment-wrapper" import CheckoutForm from "@modules/checkout/templates/checkout-form" import CheckoutSummary from "@modules/checkout/templates/checkout-summary" import { Metadata } from "next" import { notFound } from "next/navigation" export const metadata: Metadata = { title: "Checkout", } export default async function Checkout() { const cart = await retrieveCart() if (!cart) { return notFound() } const customer = await retrieveCustomer() return (
) }