import Link from "next/link"; import { ShoppingBasket } from "lucide-react"; import { CartItemRow } from "@/components/customer/cart-item-row"; import type { CartGroup } from "@/types/api"; import type { ReactNode } from "react"; /** Shared between /cart and /checkout/[store] — the pixel-perfect per-store card. */ export function StoreCartCard({ group, children }: { group: CartGroup; children?: ReactNode }) { return (
{group.items.length.toLocaleString("fa-IR")} کالا {group.store.name}
{group.items.map((item) => ( ))}
جمع فروشگاه: {group.items_subtotal.toLocaleString("fa-IR")} تومان
{children}
); }