import { StoreCart, StoreCartLineItem } from "@medusajs/types" import { Trans } from '@kit/ui/trans'; import CartItem from "./cart-item"; import { Table, TableBody, TableHead, TableRow, TableHeader, } from '@kit/ui/table'; export default function CartItems({ cart, items, productColumnLabelKey }: { cart: StoreCart; items: StoreCartLineItem[]; productColumnLabelKey: string; }) { if (!items || items.length === 0) { return null; } return ( {items .sort((a, b) => (a.created_at ?? "") > (b.created_at ?? "") ? -1 : 1) .map((item) => ( ))}
) }