"use client"; import { ArrowRightIcon, HeartIcon } from "lucide-react"; import React, { useState } from "react"; import { Lens } from "@/components/aceternity/lens"; import { cn } from "@/lib/utils"; interface CardData { title: string; price: number; image: string; link: string; } interface Gallery33Props { cardData?: CardData[]; className?: string; } const formatPrice = (value: number) => new Intl.NumberFormat("fa-IR", { style: "currency", currency: "IRR", maximumFractionDigits: 0, }).format(value); const defaultCardData: CardData[] = [ { title: "مجموعه تیر", price: 150, image: "/block-media/shadcnblocks/block/guri3/img1.jpeg", link: "#", }, { title: "ضروریات تابستانی", price: 89, image: "/block-media/shadcnblocks/block/guri3/img2.jpeg", link: "#", }, { title: "بسته پریمیوم", price: 299, image: "/block-media/shadcnblocks/block/guri3/img3.jpeg", link: "#", }, { title: "تازه‌ها", price: 120, image: "/block-media/shadcnblocks/block/guri3/img4.jpeg", link: "#", }, { title: "نسخه محدود", price: 199, image: "/block-media/shadcnblocks/block/guri3/img27.jpeg", link: "#", }, { title: "ست اختصاصی", price: 249, image: "/block-media/shadcnblocks/block/guri3/img13.jpeg", link: "#", }, ]; const Gallery33 = ({ cardData = defaultCardData, className, }: Gallery33Props) => { const [hoveredCard, setHoveredCard] = useState(null); return (
{cardData.map((card, index) => (
setHoveredCard(hovering ? index : null) } > setHoveredCard(index)} onMouseLeave={() => setHoveredCard(null)} src={card.image} alt={card.title} className="h-72 w-full rounded-3xl object-cover" />

{card.title}

{formatPrice(card.price)}

))}
); }; export { Gallery33 };