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 { Public_Sans } from "next/font/google";



export const metadata: Metadata = {
  title: 'GadgetVerse - Your Universe of Cutting-Edge Phone Gadgets',
  description: 'Discover the latest and most innovative phone gadgets, from protective cases to audio gear and smart accessories. Elevate your mobile experience with GadgetVerse.',
  keywords: ["phone gadgets, mobile accessories, smartphone, tech, cases, chargers, earbuds, smart devices"],
  openGraph: {
    "title": "GadgetVerse - Cutting-Edge Phone Gadgets",
    "description": "Discover the latest and most innovative phone gadgets. Elevate your mobile experience.",
    "url": "https://www.gadgetverse.com",
    "siteName": "GadgetVerse",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/natural-background-water-pool-texture-close-up_169016-22523.jpg",
        "alt": "Collection of modern phone gadgets"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "GadgetVerse - Cutting-Edge Phone Gadgets",
    "description": "Discover the latest and most innovative phone gadgets. Elevate your mobile experience.",
    "images": [
      "http://img.b2bpic.net/free-photo/natural-background-water-pool-texture-close-up_169016-22523.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const publicSans = Public_Sans({
  variable: "--font-public-sans",
  subsets: ["latin"],
});

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