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";



export const metadata: Metadata = {
  title: 'Soft Swirls Ice Cream | Creamy Delights & Unique Flavors',
  description: 'Indulge in the best soft serve ice cream, handcrafted with premium ingredients and a swirl of passion. Find your favorite flavor at Soft Swirls!',
  openGraph: {
    "title": "Soft Swirls Ice Cream | Creamy Delights & Unique Flavors",
    "description": "Indulge in the best soft serve ice cream, handcrafted with premium ingredients and a swirl of passion. Find your favorite flavor at Soft Swirls!",
    "url": "https://softswirls.com",
    "siteName": "Soft Swirls",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/liquid-marbling-paint-texture-background-fluid-painting-abstract-texture-intensive-color-mix-wallpaper_1258-79204.jpg",
        "alt": "Soft Swirls Hero Background"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Soft Swirls Ice Cream | Creamy Delights & Unique Flavors",
    "description": "Indulge in the best soft serve ice cream, handcrafted with premium ingredients and a swirl of passion. Find your favorite flavor at Soft Swirls!",
    "images": [
      "http://img.b2bpic.net/free-photo/liquid-marbling-paint-texture-background-fluid-painting-abstract-texture-intensive-color-mix-wallpaper_1258-79204.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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