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 { getVisualEditScript } from "@/utils/visual-edit-script";



export const metadata: Metadata = {
  title: 'Oaxaca Cuisine Bar & Grill | Authentic Oaxacan Flavors',
  description: 'Experience authentic Oaxacan cuisine in an elegant and warm atmosphere. Book your table at Oaxaca Cuisine Bar & Grill today.',
  openGraph: {
    "title": "Oaxaca Cuisine Bar & Grill",
    "description": "Experience authentic Oaxacan cuisine in an elegant and warm atmosphere.",
    "siteName": "Oaxaca Cuisine Bar & Grill",
    "type": "website"
  },
};

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`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
