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

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

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

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