import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; import { siteConfig } from "@/lib/site-config"; import { ConsentInit } from "@/components/consent-init"; import { CookieBanner } from "@/components/cookie-banner"; import { getSeoSettings } from "@/lib/data"; const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], }); const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"], }); export const metadata: Metadata = { title: { default: `${siteConfig.name} — Yazılım, Web ve CRM Çözümleri`, template: `%s | ${siteConfig.name}`, }, description: siteConfig.tagline, metadataBase: new URL(siteConfig.url), openGraph: { title: siteConfig.name, description: siteConfig.tagline, locale: "tr_TR", type: "website", }, icons: { icon: "/logo.png" }, }; export default async function RootLayout({ children, }: Readonly<{ children: React.ReactNode }>) { let gtmId: string | null = null; try { const seo = await getSeoSettings(); gtmId = seo?.gtm_id ?? null; } catch { gtmId = null; } return (