import React from "react"; import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; import { NextIntlClientProvider } from "next-intl"; import { getMessages } from "next-intl/server"; import { InitialLoading } from "@/components/initialLoading/initialLoading"; import { Providers } from "@/components/provider"; import Script from "next/script"; const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], }); const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"], }); // openGraphData tipini aniq belgilaymiz const openGraphData: Record< "uz" | "ru" | "en", { title: string; description: string; locale: string } > = { uz: { title: "Ignum Technologies - Professional Fire Safety Systems", description: "Tijorat va uy-joy ob’ektlari uchun yong‘in aniqlash, bostirish va signalizatsiya tizimlarini o‘z ichiga olgan to‘liq yong‘in himoyasi yechimlari.", locale: "uz_UZ", }, ru: { title: "Ignum Technologies - Профессиональные системы пожарной безопасности", description: "Полные решения по пожарной защите, включая системы обнаружения, тушения и сигнализации для коммерческих и жилых объектов.", locale: "ru_RU", }, en: { title: "Ignum Technologies - Professional Fire Safety Systems", description: "Comprehensive fire protection solutions including detection, suppression, and alarm systems for commercial and residential properties.", locale: "en_US", }, }; export const metadata: Metadata = { title: { default: "Ignum Technologies - Fire Safety Systems Installation & Sales", template: "%s | Ignum Technologies", }, description: "Ignum Technologies specializes in professional fire safety systems installation and sales. Protect your property with cutting-edge fire detection, suppression, and alarm systems from certified experts.", keywords: [ "fire safety systems", "fire alarm installation", "fire suppression systems", "fire detection", "Ignum Technologies", "fire safety equipment", "fire protection services", "commercial fire systems", "residential fire safety", ], authors: [{ name: "Ignum Technologies" }], creator: "Ignum Technologies", publisher: "Ignum Technologies", formatDetection: { email: false, address: false, telephone: false }, metadataBase: new URL("https://ignum-tech.com"), alternates: { canonical: "/" }, icons: { icon: [ { url: "/icon-light-32x32.png", media: "(prefers-color-scheme: light)" }, { url: "/icon-dark-32x32.png", media: "(prefers-color-scheme: dark)" }, { url: "/icon.svg", type: "image/svg+xml" }, ], apple: "/apple-icon.png", }, verification: { google: "your-google-verification-code" }, }; export default async function RootLayout({ children, params, }: Readonly<{ children: React.ReactNode; params: any }>) { const { locale } = await params; const messages: any = await getMessages(); // Locale ga mos Open Graph ma'lumotini tanlaymiz const og = openGraphData[locale as "uz" | "ru" | "en"] || openGraphData["uz"]; return ( {/* Open Graph */} {/* Twitter */} {/* Yandex Metrika */}