chore: transfer repo

This commit is contained in:
Danijel
2026-01-19 20:21:14 +01:00
commit 7d2fb0c737
213 changed files with 18085 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
'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 (
<div className="mb-6">
<h2 className="text-lg font-medium mb-4">{t('cart.boxes')}</h2>
<div className="space-y-4">
{boxes.map((boxGroup) => (
<CartBoxItem
key={boxGroup.box.id}
boxItem={boxGroup.box}
boxProducts={boxGroup.products}
onUpdate={onUpdate}
isPending={isPending}
/>
))}
</div>
</div>
);
}