import { getDictionary } from "@/dictionaries/get-dictionary"
import SuiteDetailClient from "./SuiteDetailClient"

export async function generateMetadata({ params }: { params: Promise<{ lang: string, id: string }> }) {
  const { lang, id } = await params
  const dict = await getDictionary(lang as 'en' | 'tr')
  
  return {
    title: `Suites - Ayris Apart`,
    description: dict.suites_page.subtitle,
  }
}

export default async function SuiteDetailPage({ params }: { params: Promise<{ lang: string, id: string }> }) {
  const { lang, id } = await params
  const dict = await getDictionary(lang as 'en' | 'tr')

  return <SuiteDetailClient lang={lang} id={id} dict={dict} />
}
