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: 'Kolachi Restaurant - Authentic Gourmet Dining & E-commerce',
  description: 'Experience premium Pakistani and international cuisine at Kolachi Restaurant. Explore our menu, order online, and book reservations for an unforgettable culinary journey.',
  openGraph: {
    "title": "Kolachi Restaurant - Authentic Gourmet Dining",
    "description": "Experience premium Pakistani and international cuisine at Kolachi Restaurant. Explore our menu, order online, and book reservations for an unforgettable culinary journey.",
    "url": "https://kolachirestaurant.com",
    "siteName": "Kolachi Restaurant",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/salad-served-with-crispy-cracker-green-vegetables_114579-1717.jpg",
        "alt": "Luxurious dining setting at Kolachi Restaurant"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Kolachi Restaurant - Authentic Gourmet Dining",
    "description": "Experience premium Pakistani and international cuisine at Kolachi Restaurant. Explore our menu, order online, and book reservations for an unforgettable culinary journey.",
    "images": [
      "http://img.b2bpic.net/free-photo/salad-served-with-crispy-cracker-green-vegetables_114579-1717.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>
  );
}
