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



export const metadata: Metadata = {
  title: 'Elegant Locks Salon - Premium Hair Care & Styling',
  description: 'Discover exceptional haircuts, vibrant color, and luxurious treatments at Elegant Locks Salon. Book your personalized styling experience today.',
  openGraph: {
    "title": "Elegant Locks Salon - Your Destination for Beautiful Hair",
    "description": "Experience luxury and expertise in hair care. From modern cuts to stunning colors, Elegant Locks Salon helps you achieve your dream look.",
    "url": "https://www.elegantlockssalon.com",
    "siteName": "Elegant Locks Salon",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/man-barbershop_1303-5403.jpg",
        "alt": "Stylish woman getting her hair done at Elegant Locks Salon"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Elegant Locks Salon - Premium Hair Care & Styling",
    "description": "Discover exceptional haircuts, vibrant color, and luxurious treatments at Elegant Locks Salon. Book your personalized styling experience today.",
    "images": [
      "http://img.b2bpic.net/free-photo/man-barbershop_1303-5403.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const mulish = Mulish({
  variable: "--font-mulish",
  subsets: ["latin"],
});

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