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";



export const metadata: Metadata = {
  title: 'Postiiify - Your Anime Posters & Action Figures Hub',
  description: 'Discover high-quality anime posters and action figures at Postiiify. Unleash your fandom with our curated collection of collectibles.',
  keywords: ["anime posters, action figures, anime collectibles, manga art, anime shop, postiiify, anime merchandise"],
  openGraph: {
    "title": "Postiiify - Your Anime Posters & Action Figures Hub",
    "description": "Discover high-quality anime posters and action figures at Postiiify. Unleash your fandom with our curated collection of collectibles.",
    "url": "https://www.postiiify.com",
    "siteName": "Postiiify",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/black-friday-sales_23-2152020727.jpg",
        "alt": "Dynamic collage of anime characters and action figures"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Postiiify - Your Anime Posters & Action Figures Hub",
    "description": "Discover high-quality anime posters and action figures at Postiiify. Unleash your fandom with our curated collection of collectibles.",
    "images": [
      "http://img.b2bpic.net/free-photo/black-friday-sales_23-2152020727.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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={`${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
