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: 'Freshify Smoothie Bowls - Real Fruit, Real Flavor',
  description: 'Discover Freshify, serving delicious smoothie bowls made with real fruit and natural ingredients. Explore our menu and order your favorite flavor today!',
  openGraph: {
    "title": "Freshify Smoothie Bowls - Real Fruit, Real Flavor",
    "description": "Discover Freshify, serving delicious smoothie bowls made with real fruit and natural ingredients. Explore our menu and order your favorite flavor today!",
    "url": "https://www.freshifybowls.com",
    "siteName": "Freshify",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/glass-dessert-with-colorful-candy-topping_23-2148603265.jpg",
        "alt": "Blueberry Smoothie Bowl"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Freshify Smoothie Bowls - Real Fruit, Real Flavor",
    "description": "Discover Freshify, serving delicious smoothie bowls made with real fruit and natural ingredients. Explore our menu and order your favorite flavor today!",
    "images": [
      "http://img.b2bpic.net/free-photo/glass-dessert-with-colorful-candy-topping_23-2148603265.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>
  );
}
