'use client' import { useRef } from 'react' import { useTranslations } from 'next-intl' import { motion, useInView } from 'framer-motion' import { Waves, GraduationCap, Building2, Heart, Plane, Landmark } from 'lucide-react' const locationItems = [ { key: 'beach' as const, itemsKey: 'beachItems' as const, icon: Waves }, { key: 'education' as const, itemsKey: 'educationItems' as const, icon: GraduationCap }, { key: 'city' as const, itemsKey: 'cityItems' as const, icon: Building2 }, { key: 'health' as const, itemsKey: 'healthItems' as const, icon: Heart }, { key: 'airport' as const, itemsKey: 'airportItems' as const, icon: Plane }, { key: 'tourism' as const, itemsKey: 'tourismItems' as const, icon: Landmark }, ] export default function LocationSection() { const t = useTranslations('location') const ref = useRef(null) const isInView = useInView(ref, { once: true, margin: '-80px' }) return (
{/* Sol: Başlık + Grid */}
{t('label')} {t('title')}
{locationItems.map((item, i) => { const Icon = item.icon return (

{t(item.key)}

{t(item.itemsKey)}

) })}
{/* Sağ: Harita embed */}