"use client"; import { useState } from "react"; import { motion, AnimatePresence } from "framer-motion"; import { X, ZoomIn } from "lucide-react"; import { Badge } from "@/app/components/ui/badge"; export default function GaleriClient({ lang, dict }: { lang: string; dict: any }) { const t = dict.gallery; const CATEGORIES = [t.all, t.venues, "Beach", "Bungalov", "Kite Surf", "Hotel"] as const; type Category = string; const IMAGES = [ { src: "https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&q=80&w=800", cat: t.venues, title: "Akşam Servisi" }, { src: "https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&q=80&w=800", cat: "Beach", title: "Moy Beach Alaçatı" }, { src: "https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&q=80&w=800", cat: "Bungalov", title: "Doğada Konaklama" }, { src: "https://images.unsplash.com/photo-1526685514088-290076a0d426?auto=format&fit=crop&q=80&w=800", cat: "Kite Surf", title: "Gökova Körfezi" }, { src: "https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&q=80&w=800", cat: "Hotel", title: "Kite Beach Hotel" }, { src: "https://images.unsplash.com/photo-1519046904884-53103b34b206?auto=format&fit=crop&q=80&w=800", cat: "Beach", title: "Gün Batımı" }, { src: "https://images.unsplash.com/photo-1571003123894-1f0594d2b5d9?auto=format&fit=crop&q=80&w=800", cat: "Hotel", title: "Oda Manzarası" }, { src: "https://images.unsplash.com/photo-1614214227038-f9d9cf98b1ec?auto=format&fit=crop&q=80&w=800", cat: "Kite Surf", title: "Sabah Seansı" }, { src: "https://images.unsplash.com/photo-1490197415175-074fd86b1fcc?auto=format&fit=crop&q=80&w=800", cat: t.venues, title: "Taze Deniz Ürünleri" }, ]; const [active, setActive] = useState(t.all); const [lightbox, setLightbox] = useState<{src:string, cat:string, title:string} | null>(null); const filtered = active === t.all ? IMAGES : IMAGES.filter((img) => img.cat === active); return (
{/* Hero */}

{t.eyebrow}

{t.title}

{t.subtitle}

{/* Filter pills */}
{CATEGORIES.map((cat) => ( ))}
{/* Grid */}
{filtered.map((img) => ( setLightbox(img)} > {img.title}
{img.title}
{img.cat}
))}
{/* Lightbox */} {lightbox && ( setLightbox(null)} > e.stopPropagation()} > {lightbox.title}

{lightbox.title}

)}
); }