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: 'Bakso Ponti - Authentic Bakso in Bandung',
  description: 'Experience authentic Indonesian bakso at Bakso Ponti in Bandung. Enjoy traditional, flavorful meatball soup made with fresh local ingredients. View our menu and order now!',
  keywords: ["bakso, bakso Ponti, authentic bakso, Indonesian meatball soup, Bandung food, traditional Indonesian cuisine, local restaurant Bandung, Kiaracondong bakso"],
  openGraph: {
    "title": "Bakso Ponti - Authentic Bakso in Bandung",
    "description": "Experience authentic Indonesian bakso at Bakso Ponti in Bandung. Enjoy traditional, flavorful meatball soup made with fresh local ingredients.",
    "url": "https://www.baksoponti.com",
    "siteName": "Bakso Ponti",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/vertical-view-tomato-meatballs-soup-with-noodles-brown-bowl-different-spices-dark-background_140725-141713.jpg",
        "alt": "A steaming bowl of authentic Indonesian Bakso Ponti soup"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Bakso Ponti - Authentic Bakso in Bandung",
    "description": "Experience authentic Indonesian bakso at Bakso Ponti in Bandung. Enjoy traditional, flavorful meatball soup made with fresh local ingredients.",
    "images": [
      "http://img.b2bpic.net/free-photo/vertical-view-tomato-meatballs-soup-with-noodles-brown-bowl-different-spices-dark-background_140725-141713.jpg"
    ]
  },
};

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