import type { Metadata } from "next"; import { Cormorant_Garamond, Montserrat } from "next/font/google"; import Navbar from "../components/Navbar"; import Footer from "../components/Footer"; import "../globals.css"; import { Locale, getDictionary } from "../dictionaries"; const cormorant = Cormorant_Garamond({ variable: "--font-cormorant", subsets: ["latin"], weight: ["300", "400", "500", "600", "700"], }); const montserrat = Montserrat({ variable: "--font-montserrat", subsets: ["latin"], weight: ["300", "400", "500", "600", "700"], }); export async function generateMetadata({ params }: { params: Promise<{ lang: string }> }): Promise { const { lang } = await params; const dict = await getDictionary(lang as Locale); return { metadataBase: new URL("https://moygroup.com.tr"), title: { template: "%s | Moy Group", default: dict.seo.home.title, }, description: dict.seo.home.description, }; } export default async function RootLayout({ children, params, }: Readonly<{ children: React.ReactNode; params: Promise<{ lang: string }>; }>) { const { lang } = await params; const locale = lang as Locale; const dict = await getDictionary(locale); const jsonLd = { "@context": "https://schema.org", "@type": "Organization", "name": "Moy Group", "url": "https://moygroup.com.tr", "logo": "https://moygroup.com.tr/logo.png", "contactPoint": { "@type": "ContactPoint", "telephone": "+90-534-465-62-35", "contactType": "customer service" } }; return (