"use client"; import type { OrderGroup } from "@/types/api"; import {formatTomanPrice} from "@/lib/utils/priceUtils"; interface Props { order: OrderGroup; } const OrderItems = ({ order }: Props) => { // همه آیتمهای همه فروشگاهها رو جمع میکنیم const allItems = order.orders.flatMap((o) => o.items.map((item) => ({ ...item, storeName: o.store.name, })) ); return (