19 lines
632 B
TypeScript
19 lines
632 B
TypeScript
import { getDictionary } from "@/dictionaries/get-dictionary"
|
|
import ContactClient from "./ContactClient"
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ lang: string }> }) {
|
|
const { lang } = await params
|
|
const dict = await getDictionary(lang as 'en' | 'tr')
|
|
return {
|
|
title: `${dict.contact.title} - Ayris Apart`,
|
|
description: dict.contact.subtitle,
|
|
}
|
|
}
|
|
|
|
export default async function ContactPage({ params }: { params: Promise<{ lang: string }> }) {
|
|
const { lang } = await params
|
|
const dict = await getDictionary(lang as 'en' | 'tr')
|
|
|
|
return <ContactClient lang={lang} dict={dict} />
|
|
}
|