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 sans = Geist({ variable: "--font-poppins", subsets: ["latin"], display: "swap", }); 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", }, // Favicon/app ikonları app/icon.png + app/apple-icon.png dosya // konvansiyonundan otomatik üretilir (logo.png'den kare kırpıldı). }; 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 (