import { getTranslations, setRequestLocale } from 'next-intl/server' import { MOCK_TOURS, MOCK_CATEGORIES } from '@/lib/mock' import Link from 'next/link' import Image from 'next/image' export default async function ToursPage({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params setRequestLocale(locale) const s = await getTranslations('sections') const t = await getTranslations('tour') return (

{s('categories')}

{MOCK_TOURS.map(tour => { const cat = MOCK_CATEGORIES.find(c => c.id === tour.categoryId) return (
{tour.title} {cat && (
{cat.name}
)}

{tour.title}

{tour.description}

{t('from')} ${tour.price}
{t('book_now')}
) })}
) }