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: 'Elegance Atelier | Custom Dresses & Wedding Gowns',
  description: 'Discover exquisite custom-made dresses and bespoke wedding gowns at Elegance Atelier. Handcrafted with passion and precision to bring your unique vision to life.',
  openGraph: {
    "title": "Elegance Atelier | Custom Dresses & Wedding Gowns",
    "description": "Discover exquisite custom-made dresses and bespoke wedding gowns at Elegance Atelier. Handcrafted with passion and precision to bring your unique vision to life.",
    "url": "https://www.eleganceatelier.com",
    "siteName": "Elegance Atelier",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/young-happy-bride-smiling_624325-834.jpg",
        "alt": "Elegant bride in a custom wedding dress"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Elegance Atelier | Custom Dresses & Wedding Gowns",
    "description": "Discover exquisite custom-made dresses and bespoke wedding gowns at Elegance Atelier. Handcrafted with passion and precision to bring your unique vision to life.",
    "images": [
      "http://img.b2bpic.net/free-photo/young-happy-bride-smiling_624325-834.jpg"
    ]
  },
};

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>
  );
}
