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



export const metadata: Metadata = {
  title: 'Secret Recipe - Best Restaurant & Cake Shop in Dhaka',
  description: 'Indulge in gourmet dine-in meals and exquisite cakes at Secret Recipe, voted \'Best Restaurant in Dhaka\' for an unforgettable family dining experience. Visit our Dhanmondi flagship!',
  keywords: ["Secret Recipe, restaurant Dhaka, best cake Dhaka, rib eye steak, cheesecake, cream cake, family restaurant, fine dining Dhaka, Dhanmondi restaurant"],
  openGraph: {
    "title": "Secret Recipe - Culinary & Bakery Excellence",
    "description": "Experience the best of dine-in cuisine and delectable desserts at Secret Recipe. Your destination for gourmet food and delightful cakes in Dhaka.",
    "url": "https://secretrecipe.com.bd",
    "siteName": "Secret Recipe",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/juicy-grilled-steak-with-rosemary-cherry-tomatoes-chili_84443-72373.jpg",
        "alt": "Gourmet Rib Eye Steak"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Secret Recipe - Culinary & Bakery Excellence",
    "description": "Experience the best of dine-in cuisine and delectable desserts at Secret Recipe. Your destination for gourmet food and delightful cakes in Dhaka.",
    "images": [
      "http://img.b2bpic.net/free-photo/variety-pastries-wooden-boards_114579-17198.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const lato = Lato({
  variable: "--font-lato",
  subsets: ["latin"],
  weight: ["100", "300", "400", "700", "900"],
});

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