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: 'Fried Chicken | Premium Iraqi Fast Food Restaurant',
  description: 'Indulge in the finest fried chicken in Iraq. Crispy, juicy, and packed with authentic flavors. Explore our menu, offers, and find a branch near you.',
  keywords: ["fried chicken, Iraqi fast food, restaurant, crispy chicken, zinger, broasted, offers, menu, Baghdad, Basra, Erbil"],
  openGraph: {
    "title": "Fried Chicken | Premium Iraqi Fast Food Restaurant",
    "description": "Indulge in the finest fried chicken in Iraq. Crispy, juicy, and packed with authentic flavors.",
    "url": "https://www.friedchicken.iq",
    "siteName": "Fried Chicken",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/top-view-tasty-chicken-wings-with-greens-tomatoes-light-background-dinner-meat-food-lunch-fries-burger-meal_140725-156965.jpg",
        "alt": "Crispy fried chicken bucket"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Fried Chicken | Premium Iraqi Fast Food Restaurant",
    "description": "Indulge in the finest fried chicken in Iraq. Crispy, juicy, and packed with authentic flavors.",
    "images": [
      "http://img.b2bpic.net/free-photo/top-view-tasty-chicken-wings-with-greens-tomatoes-light-background-dinner-meat-food-lunch-fries-burger-meal_140725-156965.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>
  );
}
