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

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

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

  return <SuitesClient lang={lang} dict={dict} />
}
