fb
This commit is contained in:
18
app/[lang]/contact/page.tsx
Normal file
18
app/[lang]/contact/page.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
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} />
|
||||
}
|
||||
Reference in New Issue
Block a user