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 (