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



export const metadata: Metadata = {
  title: 'FreshWipe Co. | Premium Wet Wipes for Every Need',
  description: 'Discover FreshWipe Co.\'s high-quality, gentle, and effective wet wipes for personal care, household cleaning, and more. Your everyday essential for freshness and hygiene.',
  keywords: ["wet wipes, baby wipes, sanitizing wipes, makeup remover wipes, household wipes, travel wipes, pet wipes, hygiene, cleanliness, gentle, effective, hypoallergenic, biodegradable"],
  openGraph: {
    "title": "FreshWipe Co. | Premium Wet Wipes for Every Need",
    "description": "Discover FreshWipe Co.'s high-quality, gentle, and effective wet wipes for personal care, household cleaning, and more.",
    "url": "/",
    "siteName": "FreshWipe Co.",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/mother-wearing-clothes-her-baby-baby-healthcare-hygiene-concept_169016-63367.jpg",
        "alt": "Happy baby with FreshWipe Co. baby wipes"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "FreshWipe Co. | Premium Wet Wipes for Every Need",
    "description": "Discover FreshWipe Co.'s high-quality, gentle, and effective wet wipes for personal care, household cleaning, and more.",
    "images": [
      "http://img.b2bpic.net/free-photo/mother-wearing-clothes-her-baby-baby-healthcare-hygiene-concept_169016-63367.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const poppins = Poppins({
  variable: "--font-poppins",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

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