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";



export const metadata: Metadata = {
  title: 'Icebreeze Pro: Portable Ice Pack Fan for Ultimate Cooling',
  description: 'Stay cool anywhere with Icebreeze Pro, the high-speed handheld electric fan with an integrated ice pack, adjustable speed, and foldable design. Perfect for outdoor activities and everyday comfort.',
  keywords: ["Icebreeze Pro, portable fan, handheld fan, electric fan, ice pack fan, mini fan, folding fan, neck fan, outdoor cooling, personal fan, adjustable fan, high speed fan"],
  openGraph: {
    "title": "Icebreeze Pro: Portable Ice Pack Fan for Ultimate Cooling",
    "description": "Stay cool anywhere with Icebreeze Pro, the high-speed handheld electric fan with an integrated ice pack, adjustable speed, and foldable design. Perfect for outdoor activities and everyday comfort.",
    "url": "https://icebreeze-pro.com",
    "siteName": "Icebreeze Pro",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/modern-round-desk-fan-with-simple-background_23-2150808048.jpg",
        "alt": "Icebreeze Pro Handheld Fan"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Icebreeze Pro: Portable Ice Pack Fan for Ultimate Cooling",
    "description": "Stay cool anywhere with Icebreeze Pro, the high-speed handheld electric fan with an integrated ice pack, adjustable speed, and foldable design. Perfect for outdoor activities and everyday comfort.",
    "images": [
      "http://img.b2bpic.net/free-photo/modern-round-desk-fan-with-simple-background_23-2150808048.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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