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



export const metadata: Metadata = {
  title: 'Nier: Reincarnation Realm - Official Game Details',
  description: 'Immerse yourself in the shattered world of Nier: Reincarnation Realm. Explore the story, meet the characters, and uncover the mysteries of The Cage.',
  keywords: ["Nier, Reincarnation, Game, RPG, Story, Characters, Lore, Mobile Game, Square Enix"],
  openGraph: {
    "title": "Nier: Reincarnation Realm - Official Game Details",
    "description": "Immerse yourself in the shattered world of Nier: Reincarnation Realm. Explore the story, meet the characters, and uncover the mysteries of The Cage.",
    "url": "https://www.nier-reincarnation-realm.com",
    "siteName": "Nier: Reincarnation Realm",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/fantasy-eye-illustrated_23-2151675271.jpg",
        "alt": "A solemn hero standing in a mystical, fractured world, reminiscent of Nier Reincarnation."
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Nier: Reincarnation Realm - Official Game Details",
    "description": "Immerse yourself in the shattered world of Nier: Reincarnation Realm. Explore the story, meet the characters, and uncover the mysteries of The Cage.",
    "images": [
      "http://img.b2bpic.net/free-photo/fantasy-eye-illustrated_23-2151675271.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const sourceSans3 = Source_Sans_3({
  variable: "--font-source-sans-3",
  subsets: ["latin"],
});

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