// ============================================================================= // πŸ›’ Π‘Π›ΠžΠš ΠšΠžΠ Π—Π˜ΠΠ« // ============================================================================= // Π’ΠΠ˜ΠœΠΠΠ˜Π•: Π’ΠΈΠ·ΡƒΠ°Π» остаСтся ВОЧНО Ρ‚Π°ΠΊΠΈΠΌ ΠΆΠ΅ ΠΊΠ°ΠΊ Π² ΠΌΠΎΠ½ΠΎΠ»ΠΈΡ‚Π½ΠΎΠΉ вСрсии! // ВсС gradients, glassmorphism, Π°Π½ΠΈΠΌΠ°Ρ†ΠΈΠΈ сохранСны import { ShoppingCart } from 'lucide-react' import { Button } from '@/components/ui/button' import { Card } from '@/components/ui/card' import { Input } from '@/components/ui/input' import type { ShoppingCartBlockProps } from './types' export function ShoppingCartBlock({ selectedConsumables, deliveryDate, notes, selectedLogistics, logisticsPartners, isCreatingSupply, getTotalAmount, getTotalItems, formatCurrency, onUpdateQuantity, onSetDeliveryDate, onSetNotes, onSetLogistics, onCreateSupply, }: ShoppingCartBlockProps) { return (

ΠšΠΎΡ€Π·ΠΈΠ½Π° ({getTotalItems()} ΡˆΡ‚)

{selectedConsumables.length === 0 ? (

ΠšΠΎΡ€Π·ΠΈΠ½Π° пуста

Π”ΠΎΠ±Π°Π²ΡŒΡ‚Π΅ расходники для создания поставки

) : (
{selectedConsumables.map((consumable) => (

{consumable.name}

{formatCurrency(consumable.price)} Γ— {consumable.selectedQuantity}

{formatCurrency(consumable.price * consumable.selectedQuantity)}
))}
)}
onSetDeliveryDate(e.target.value)} className="bg-white/10 border-white/20 text-white h-8 text-sm" min={new Date().toISOString().split('T')[0]} required />
{/* Π’Ρ‹Π±ΠΎΡ€ логистики */}
{/* Π—Π°ΠΌΠ΅Ρ‚ΠΊΠΈ */}