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 { Open_Sans } from "next/font/google";



export const metadata: Metadata = {
  title: 'MAD Brothers Restaurant | Kaunas Old Town Dining',
  description: 'Experience delicious food and friendly service at MAD Brothers Restaurant, located in the heart of Kaunas Old Town. Perfect for a casual meal or a special occasion.',
  openGraph: {
    "title": "MAD Brothers Restaurant",
    "description": "Experience delicious food and friendly service at MAD Brothers Restaurant, located in the heart of Kaunas Old Town. Perfect for a casual meal or a special occasion.",
    "url": "https://www.madbrothers.com",
    "siteName": "MAD Brothers Restaurant",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/top-view-dining-tables-without-food_23-2150157792.jpg",
        "alt": "Elegant restaurant dining scene"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "MAD Brothers Restaurant",
    "description": "Experience delicious food and friendly service at MAD Brothers Restaurant, located in the heart of Kaunas Old Town. Perfect for a casual meal or a special occasion.",
    "images": [
      "http://img.b2bpic.net/free-photo/top-view-dining-tables-without-food_23-2150157792.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const openSans = Open_Sans({
  variable: "--font-open-sans",
  subsets: ["latin"],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${openSans.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
