"use client"; import React, { useState } from 'react'; import { useCartStore } from '@/lib/cart-store'; import { formatCurrency } from '@/lib/utils'; import Link from 'next/link'; import { ShieldCheck, ArrowRight, Tag } from 'lucide-react'; export function CartSummary() { const { items, getTotals } = useCartStore(); const [promoCode, setPromoCode] = useState(''); if (items.length === 0) return null; const { subtotal, vat, total } = getTotals(); // Obliczamy ile pozycji ma montaż by wyświetlić odpowiednią informację const itemsWithInstall = items.filter(i => i.withInstall).length; return (