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



export const metadata: Metadata = {
  title: 'Vicky\'s Hair Salon | Luxury Hair Care in Austin TX',
  description: 'Experience luxury hair care at Vicky\'s Hair Salon. Expert color, cuts, extensions, and styling in Austin, TX.',
  openGraph: {
    "title": "Vicky's Hair Salon | Luxury Hair Care in Austin TX",
    "siteName": "Vicky's Hair Salon",
    "type": "website"
  },
};

const playfair = Playfair_Display({
  variable: "--font-playfair",
  subsets: ["latin"],
});
const jost = Jost({
  variable: "--font-jost",
  subsets: ["latin"],
});

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