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



export const metadata: Metadata = {
  title: '\'N Ice - Delicious Ice Cream by the Beach in Strand',
  description: 'Experience the best ice cream in Strand, Cape Town! \'N Ice offers a wide range of handcrafted flavors, soft serves, and refreshing treats by the beautiful beachfront.',
  keywords: ["ice cream, ice cream shop, Strand, Cape Town, N Ice, soft serve, gelato, desserts, beachfront, sweet treats"],
  openGraph: {
    "title": "'N Ice - Delicious Ice Cream by the Beach",
    "description": "Experience the best ice cream in Strand, Cape Town! 'N Ice offers a wide range of handcrafted flavors, soft serves, and refreshing treats by the beautiful beachfront.",
    "url": "https://www.yournicecreamshop.com",
    "siteName": "'N Ice Cream Shop",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/medium-shot-teenager-holding-ice-cream_23-2149299587.jpg",
        "alt": "Delicious ice cream cone"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "'N Ice - Delicious Ice Cream by the Beach",
    "description": "Experience the best ice cream in Strand, Cape Town! 'N Ice offers a wide range of handcrafted flavors, soft serves, and refreshing treats by the beautiful beachfront.",
    "images": [
      "http://img.b2bpic.net/free-photo/medium-shot-teenager-holding-ice-cream_23-2149299587.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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