'use client'; import { use } from "react"; import { yachts } from "../../data/yachts"; import { Link } from "@/i18n/routing"; import { useTranslations, useLocale } from "next-intl"; import { CldImage } from "next-cloudinary"; interface PageProps { params: Promise<{ locale: string }>; } export default function FleetPage({ params }: PageProps) { const { locale: _locale } = use(params); const t = useTranslations('FleetList'); const locale = useLocale(); return (
{t('collection')}

{t('title1')}
{t('title2')}

{t('description')}

{t('bg_text')}
{yachts.map((yacht, index) => (
{t('masterpiece')}{index + 1}

{yacht.name}

{locale === 'tr' && yacht.description_tr ? yacht.description_tr : yacht.description}

straighten {t('length')} {yacht.length}
groups {t('guests')} {yacht.guests} {t('guests_suffix')}
{t('discover')}
))}
); }