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



export const metadata: Metadata = {
  title: 'SIX PADEL | Canchas Premium de Pádel en San Lorenzo',
  description: 'Descubre las mejores canchas de pádel en San Lorenzo. Reserva tu cancha en SIX PADEL para instalaciones de alta calidad, horarios flexibles y una comunidad vibrante.',
  keywords: ["padel, padel court, San Lorenzo, Paraguay, book court, padel club, SIX PADEL, sports facility"],
  openGraph: {
    "title": "SIX PADEL | Premium Padel Courts in San Lorenzo",
    "description": "Experience the best padel courts in San Lorenzo. Book your court at SIX PADEL for high-quality facilities, flexible hours, and a vibrant community.",
    "url": "/",
    "siteName": "SIX PADEL",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/side-view-empty-paddle-tennis-field_23-2149458993.jpg",
        "alt": "Padel court interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "SIX PADEL | Premium Padel Courts in San Lorenzo",
    "description": "Experience the best padel courts in San Lorenzo. Book your court at SIX PADEL for high-quality facilities, flexible hours, and a vibrant community.",
    "images": [
      "http://img.b2bpic.net/free-photo/side-view-empty-paddle-tennis-field_23-2149458993.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const openSans = Open_Sans({
  variable: "--font-open-sans",
  subsets: ["latin"],
});

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