import { getTranslations, setRequestLocale } from 'next-intl/server' import { Link } from '@/i18n/routing' import Image from 'next/image' import { Users, Square, Info } from 'lucide-react' export default async function RoomsPage({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params setRequestLocale(locale) const tNav = await getTranslations('nav') const tRooms = await getTranslations('rooms') const MOCK_ROOMS = [ { slug: '1-0-daire', name: tRooms('room_list.1_0_daire.name'), description: tRooms('room_list.1_0_daire.desc'), capacity: 2, size: '25m²', image: 'https://images.unsplash.com/photo-1631049307264-da0ec9d70304?auto=format&fit=crop&q=80', amenities: ['Mini Mutfak', 'Klima', 'Balkon', 'WiFi'] }, { slug: '1-1-daire-a', name: tRooms('room_list.1_1_daire_a.name'), description: tRooms('room_list.1_1_daire_a.desc'), capacity: 2, size: '40m²', image: 'https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?auto=format&fit=crop&q=80', amenities: ['Ayrı Mutfak', 'Klima', 'Balkon', 'WiFi', 'Oturma Alanı'] }, { slug: '1-1-daire-b', name: tRooms('room_list.1_1_daire_b.name'), description: tRooms('room_list.1_1_daire_b.desc'), capacity: 4, size: '50m²', image: 'https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&q=80', amenities: ['2 Oda', 'Ayrı Mutfak', 'Klima', 'Balkon', 'WiFi'] } ]; return (

{tRooms('title')}

{tRooms('description')}

{MOCK_ROOMS.map((room) => (
{room.name}

{room.name}

{room.description}

{room.capacity} {tRooms('capacity')}
{room.size}
{room.amenities.length} {tRooms('amenities')}
{tRooms('ask_price')} {tRooms('per_night')}
{tRooms('details_btn')}
))}
) }