"use client"; import { useTranslations } from 'next-intl'; import { motion } from 'framer-motion'; import Image from 'next/image'; import { Users, Check, Sparkles } from 'lucide-react'; export default function Accommodation() { const t = useTranslations('Accommodation'); const openWhatsApp = () => { const phone = process.env.NEXT_PUBLIC_WHATSAPP_NUMBER || '905000000000'; window.open(`https://wa.me/${phone}`, '_blank'); }; const rooms = [ { id: 'standard', image: 'https://picsum.photos/600/400?random=3', capacity: 2, features: t.raw('rooms.standard.features') as string[], featured: false, gradient: 'linear-gradient(135deg, #00BFA5, #00E5FF)', }, { id: 'sea_view', image: 'https://picsum.photos/600/400?random=4', capacity: 2, features: t.raw('rooms.sea_view.features') as string[], featured: true, gradient: 'linear-gradient(135deg, #FF5A36, #FFA827)', }, { id: 'garden_suite', image: 'https://picsum.photos/600/400?random=5', capacity: 4, features: t.raw('rooms.garden_suite.features') as string[], featured: false, gradient: 'linear-gradient(135deg, #00BFA5, #00E5FF)', }, ]; return (
— Konaklama {t('title')} {t('description')}
{rooms.map((room, index) => ( {/* Featured badge */} {room.featured && (
FEATURED
)} {/* Image */}
{t(`rooms.${room.id}.name`)}
{/* Content */}

{t(`rooms.${room.id}.name`)}

{t('capacity')} {room.capacity} {t('person')}
    {room.features.map((feature, i) => (
  • {feature}
  • ))}
))}
); }