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: 'Hanky Baskets - Handcrafted for Every Occasion',
  description: 'Discover exquisite, handcrafted hanky baskets, perfect for unique gifts, elegant decor, and special events. Each basket is made with love and precision.',
  keywords: ["hanky baskets, handmade baskets, gift baskets, wedding favors, decorative baskets, custom baskets, special occasion gifts, unique gifts, artisanal, handcrafted decor"],
  openGraph: {
    "title": "Hanky Baskets - Handcrafted for Every Occasion",
    "description": "Discover exquisite, handcrafted hanky baskets, perfect for unique gifts, elegant decor, and special events. Each basket is made with love and precision.",
    "url": "https://www.hanky-baskets.com",
    "siteName": "Hanky Baskets",
    "images": [
      {
        "url": "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Eyrxuo8c6fIx2qOdv96OTNmfC8/uploaded-1781162062773-j8xm5427.jpg",
        "alt": "White hanky basket with colorful flowers, intricate design"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Hanky Baskets - Handcrafted for Every Occasion",
    "description": "Discover exquisite, handcrafted hanky baskets, perfect for unique gifts, elegant decor, and special events. Each basket is made with love and precision.",
    "images": [
      "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Eyrxuo8c6fIx2qOdv96OTNmfC8/uploaded-1781162062773-j8xm5427.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>
  );
}
