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: 'مطعم الأصالة | Authentic Arabic Cuisine',
  description: 'Experience the rich flavors and warm hospitality of مطعم الأصالة. Indulge in traditional Arabic dishes crafted with passion and authentic ingredients.',
  openGraph: {
    "title": "مطعم الأصالة | Authentic Arabic Cuisine",
    "description": "Experience the rich flavors and warm hospitality of مطعم الأصالة. Indulge in traditional Arabic dishes crafted with passion and authentic ingredients.",
    "url": "https://www.yourrestaurant.com",
    "siteName": "مطعم الأصالة",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/breakfast-set-with-various-food-table_140725-6059.jpg",
        "alt": "Lavish Arabic food spread"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "مطعم الأصالة | Authentic Arabic Cuisine",
    "description": "Experience the rich flavors and warm hospitality of مطعم الأصالة. Indulge in traditional Arabic dishes crafted with passion and authentic ingredients.",
    "images": [
      "http://img.b2bpic.net/free-photo/breakfast-set-with-various-food-table_140725-6059.jpg"
    ]
  },
};

const montserrat = Montserrat({
  variable: "--font-montserrat",
  subsets: ["latin"]
});
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={`${montserrat.variable} ${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
