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