'use client'; import { useTranslation } from '@/lib/hooks/useTranslation'; import { CartItem } from 'lib/shopify/types'; import { CartBoxItem } from '../CartBoxItem'; interface BoxesSectionProps { boxes: Array<{ box: CartItem; products: CartItem[] }>; onUpdate: (merchandiseId: string, updateType: 'plus' | 'minus' | 'delete', itemId?: string) => void; isPending: boolean; } export function BoxesSection({ boxes, onUpdate, isPending }: BoxesSectionProps) { const { t } = useTranslation(); if (boxes.length === 0) return null; return (