'use client' import { useRef } from 'react' import { useTranslations } from 'next-intl' import { motion, useInView } from 'framer-motion' import Image from 'next/image' import { TreePine, Users, Dumbbell, Wind } from 'lucide-react' const amenities = [ { key: 'livingAreas' as const, descKey: 'livingDesc' as const, icon: Users, image: 'https://images.unsplash.com/photo-1571896349842-33c89424de2d?w=800&q=80', }, { key: 'playground' as const, descKey: 'playgroundDesc' as const, icon: Wind, image: 'https://images.unsplash.com/photo-1575783970733-1aaedde1db74?w=800&q=80', }, { key: 'sports' as const, descKey: 'sportsDesc' as const, icon: Dumbbell, image: 'https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=800&q=80', }, { key: 'forest' as const, descKey: 'forestDesc' as const, icon: TreePine, image: 'https://images.unsplash.com/photo-1448375240586-882707db888b?w=800&q=80', }, ] export default function AmenitiesSection() { const t = useTranslations('amenities') const ref = useRef(null) const isInView = useInView(ref, { once: true, margin: '-80px' }) return (
{/* Başlık */}
{t('label')} {t('title')}
{/* Grid */}
{amenities.map((item, i) => { const Icon = item.icon return ( {/* Arka plan görseli */}
{t(item.key)}
{/* İçerik */}

{t(item.key)}

{t(item.descKey)}

) })}
) }