"use client"; import { useTranslations } from 'next-intl'; import { motion } from 'framer-motion'; import Image from 'next/image'; import { Sun } from 'lucide-react'; export default function Beach({ dbBeach }: { dbBeach?: any }) { const t = useTranslations('Beach'); const titleVal = dbBeach?.title || t('title'); const descVal = dbBeach?.description || t('description'); const resInfoVal = dbBeach?.reservationInfo || t('reservation_info'); const img1 = dbBeach?.image1 || "https://picsum.photos/400/600?random=10"; const img2 = dbBeach?.image2 || "https://picsum.photos/400/400?random=11"; const img3 = dbBeach?.image3 || "https://picsum.photos/400/400?random=12"; const img4 = dbBeach?.image4 || "https://picsum.photos/400/600?random=13"; const openWhatsApp = () => { const phone = process.env.NEXT_PUBLIC_WHATSAPP_NUMBER || '905000000000'; window.open( `https://wa.me/${phone}?text=Merhaba,%20şezlong%20rezervasyonu%20yaptırmak%20istiyorum.`, '_blank', ); }; const stats = [ { value: '∞', label: 'Şezlong' }, { value: '7/7', label: 'Açık' }, { value: 'VIP', label: 'Cabana' }, ]; return (
{/* Left masonry photos */}
Plaj 1
Plaj 2
Plaj 3
Koy
{/* Right content */}
Beach Club

{titleVal}

{descVal}

{/* Stats */}
{stats.map(({ value, label }) => (
{value}
{label}
))}
{/* Info & CTA */}

{resInfoVal}

{/* Wave → midnight */}
); }