"use client"; import Image from "next/image"; import { motion } from "framer-motion"; import { ExternalLink } from "lucide-react"; import type { Product } from "@/lib/products"; import { useLanguage } from "@/context/language-context"; interface ProductCardProps { product: Product; onViewDetails: (slug: string) => void; } export function ProductCard({ product, onViewDetails }: ProductCardProps) { const {t} = useLanguage(); return ( {/* Image */}
{product.nameKey}
{/* Content */}

{product.nameKey}

{product.shortDescriptionKey}

{/* Specs Preview */}
{product.specs.slice(0, 2).map((spec, idx) => (
{spec.key}: {spec.value}
))}
{/* CTA Button */} onViewDetails(product.slug)} className="w-full flex items-center justify-center gap-2 px-4 py-2 bg-primary/80 text-white rounded-lg font-medium hover:bg-primary transition-colors" > Batafsil
); }