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: 'F1 Toy Racers | Collectible Formula 1 Scale Models',
  description: 'Discover a premium collection of F1 toy cars and miniature replicas. Meticulously crafted scale models for collectors and racing enthusiasts.',
  keywords: ["F1 toy cars, Formula 1 models, racing collectibles, scale models, miniature cars, diecast F1, F1 replicas"],
  openGraph: {
    "title": "F1 Toy Racers | Collectible Formula 1 Scale Models",
    "description": "Your ultimate destination for high-quality F1 toy cars and collectibles.",
    "url": "https://f1toyracers.com",
    "siteName": "F1 Toy Racers",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/red-formula-one-car_1048-1983.jpg",
        "alt": "Detailed F1 toy car"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "F1 Toy Racers | Collectible Formula 1 Scale Models",
    "description": "Your ultimate destination for high-quality F1 toy cars and collectibles.",
    "images": [
      "http://img.b2bpic.net/free-photo/red-formula-one-car_1048-1983.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>
  );
}
