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



export const metadata: Metadata = {
  title: 'Nail Haven | Exquisite Manicures, Pedicures & Nail Art',
  description: 'Indulge in luxurious nail care at Nail Haven. We offer expert manicures, pedicures, and custom nail art services in a relaxing, professional environment.',
  keywords: ["nail salon, manicure, pedicure, nail art, gel nails, acrylic nails, beauty salon, nail spa, pampering, nail care"],
  openGraph: {
    "title": "Nail Haven | Exquisite Manicures, Pedicures & Nail Art",
    "description": "Indulge in luxurious nail care at Nail Haven. We offer expert manicures, pedicures, and custom nail art services in a relaxing, professional environment.",
    "url": "https://www.nailhaven.com",
    "siteName": "Nail Haven",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/medium-shot-smiley-women-party_23-2149272196.jpg",
        "alt": "Luxurious nail salon interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Nail Haven | Exquisite Manicures, Pedicures & Nail Art",
    "description": "Indulge in luxurious nail care at Nail Haven. We offer expert manicures, pedicures, and custom nail art services in a relaxing, professional environment.",
    "images": [
      "http://img.b2bpic.net/free-photo/medium-shot-smiley-women-party_23-2149272196.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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