import React from 'react'; import Link from 'next/link'; import Image from 'next/image'; import { Product } from '@/types/types'; import { Heart, Wrench } from 'lucide-react'; import { formatCurrency } from '@/lib/utils'; interface ProductCardProps { product: Product; } export function ProductCard({ product }: ProductCardProps) { // Jeśli ma warianty, przycisk prowadzi do karty z wariantami const hasVariants = product.variants && product.variants.length > 0; return (
{/* Obraz */} {/* Placeholder tagów */}
{product.features?.slice(0, 2).map((feat, idx) => ( {feat} ))}
{/* Serce */} {product.name} {/* Treść */}
{product.brand}

{product.name}

{/* Informacja o mocy */}
Moc chłodnicza: {product.power} kW
{/* Ceny */}
{formatCurrency(product.price)} samo urządzenie
{product.priceWithInstall && (
od {formatCurrency(product.priceWithInstall)} z montażem
)}
); }