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



export const metadata: Metadata = {
  title: 'BJ\'s Wholesale Club - Bulk Savings & Membership Benefits',
  description: 'Discover incredible bulk savings on groceries, electronics, home goods, and more at BJ\'s Wholesale Club. Enjoy exclusive member-only pricing, convenient shopping options, and great value for families and businesses.',
  keywords: ["BJ's Wholesale Club, bulk savings, membership, groceries, electronics, home goods, Columbia MD, discount shopping"],
  openGraph: {
    "title": "BJ's Wholesale Club - Bulk Savings & Membership Benefits",
    "description": "Discover incredible bulk savings on groceries, electronics, home goods, and more at BJ's Wholesale Club. Enjoy exclusive member-only pricing, convenient shopping options, and great value for families and businesses.",
    "url": "https://bjs-wholesale-club.com",
    "siteName": "BJ's Wholesale Club",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/young-beautiful-smiling-pop-star-singer-with-microphone-sitting-scene-club_158538-7879.jpg",
        "alt": "BJ's Wholesale Club entrance"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "BJ's Wholesale Club - Bulk Savings & Membership Benefits",
    "description": "Discover incredible bulk savings on groceries, electronics, home goods, and more at BJ's Wholesale Club. Enjoy exclusive member-only pricing, convenient shopping options, and great value for families and businesses.",
    "images": [
      "http://img.b2bpic.net/free-photo/young-beautiful-smiling-pop-star-singer-with-microphone-sitting-scene-club_158538-7879.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const openSans = Open_Sans({
  variable: "--font-open-sans",
  subsets: ["latin"]
});

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