"use client"; import { motion, AnimatePresence } from "framer-motion"; import { X, Download } from "lucide-react"; import Image from "next/image"; import { ProductViewer } from "./ProductViewer"; import type { Product } from "@/lib/products"; import { useLanguage } from "@/context/language-context"; import Link from "next/link"; interface ProductModalProps { product: Product; onClose: () => void; } export function ProductModal({ product, onClose }: ProductModalProps) { const { t } = useLanguage(); return ( e.stopPropagation()} className="bg-white rounded-lg max-w-4xl w-full max-h-[90vh] overflow-y-auto" > {/* Header */}

{product.nameKey}

{/* Content */}
{/* 3D Viewer / Gallery */}
{/* Details */}

{product.longDescriptionKey ? product.longDescriptionKey : product.shortDescriptionKey}

{/* Specifications */}

Technical Specifications

{product.specs.map((spec, idx) => (
{spec.key}: {spec.value}
))}
{/* CTA Buttons */}
{t.contact.send}
); }