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



export const metadata: Metadata = {
  title: 'Bobin Ice Cream - Handcrafted Delights',
  description: 'Indulge in Bobin\'s handcrafted ice cream, made with fresh, natural ingredients. Discover unique flavors and a delightful experience at our cozy shop.',
  keywords: ["Bobin, ice cream, handcrafted, homemade, flavors, dessert, shop, natural ingredients, vegan ice cream, catering"],
  openGraph: {
    "title": "Bobin Ice Cream - Handcrafted Delights",
    "description": "Indulge in Bobin's handcrafted ice cream, made with fresh, natural ingredients. Discover unique flavors and a delightful experience at our cozy shop.",
    "url": "https://www.bobinicecream.com",
    "siteName": "Bobin Ice Cream",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/ice-creams-near-spoon-plate_23-2148131231.jpg",
        "alt": "Delicious ice cream cone"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Bobin Ice Cream - Handcrafted Delights",
    "description": "Indulge in Bobin's handcrafted ice cream, made with fresh, natural ingredients. Discover unique flavors and a delightful experience at our cozy shop.",
    "images": [
      "http://img.b2bpic.net/free-photo/ice-creams-near-spoon-plate_23-2148131231.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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