"use client"; import Image from "next/image"; import Link from "next/link"; import { resortData } from "@/src/data/resort"; import { motion } from "framer-motion"; import { useRef } from "react"; interface AccommodationCardProps { room: any; lang: "tr"; } const getCloudinaryUrl = (publicId: string, width = 1200) => { if (!publicId) return "https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&q=80&w=1200"; return `https://res.cloudinary.com/du7xohbct/image/upload/q_auto,f_auto,w_${width}/${publicId}`; }; export default function AccommodationCard({ room, lang }: AccommodationCardProps) { const allImages = [ room.mainImageId, ...(room.galleryImageIds || []) ]; const scrollRef = useRef(null); return (
{/* Precision Header Section */}
{/* Left: Title & Descriptions */}

{room.name[lang]} ({room.size})

{room.description[lang]}

{/* Right: Booking Button */}
Odayı İncele
{/* DRAGGABLE SLIDER */}
{allImages.map((id, idx) => (
Gallery
))}
); }