import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { Mulish } from "next/font/google";



export const metadata: Metadata = {
  title: 'TESOL & TEFL Academy - Xalqaro Sertifikatlar',
  description: 'TESOL & TEFL Academy bilan xalqaro darajadagi ingliz tili o\'qituvchisi sertifikatini oling. 2 oy ichida professional faoliyatni boshlang.',
  keywords: ["TEFL, TESOL, sertifikat, ingliz tili o'qituvchisi, xalqaro sertifikat, ta'lim, kurslar, professional o'qituvchi"],
  openGraph: {
    "title": "TESOL & TEFL Academy - Xalqaro Sertifikatlar",
    "description": "TESOL & TEFL Academy bilan xalqaro darajadagi ingliz tili o'qituvchisi sertifikatini oling. 2 oy ichida professional faoliyatni boshlang.",
    "url": "https://www.tesolteflacademy.uz",
    "siteName": "TESOL & TEFL Academy",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/front-view-female-worker-white-dress-holding-little-earth-globe-blue-wall_140725-150088.jpg",
        "alt": "Xalqaro TEFL va TESOL sertifikati"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "TESOL & TEFL Academy - Xalqaro Sertifikatlar",
    "description": "TESOL & TEFL Academy bilan xalqaro darajadagi ingliz tili o'qituvchisi sertifikatini oling. 2 oy ichida professional faoliyatni boshlang.",
    "images": [
      "http://img.b2bpic.net/free-photo/front-view-female-worker-white-dress-holding-little-earth-globe-blue-wall_140725-150088.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const mulish = Mulish({
  variable: "--font-mulish",
  subsets: ["latin"]
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${mulish.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
