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: 'Jwi.shop - Discover Your Vibe',
  description: 'Shop the latest fashion trends and timeless pieces from Jwi.shop. Curated styles directly from our Instagram page, delivered to your door. Find your perfect look today!',
  keywords: ["jwi.shop, instagram market, fashion, clothing, streetwear, online shop, men's fashion, women's fashion, trendy clothes, style, apparel"],
  openGraph: {
    "title": "Jwi.shop - Discover Your Vibe",
    "description": "Shop the latest fashion trends and timeless pieces from Jwi.shop. Curated styles directly from our Instagram page, delivered to your door. Find your perfect look today!",
    "url": "https://www.jwi.shop",
    "siteName": "Jwi.shop",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/cyclist-using-smartphone-steel-bridge_613910-14382.jpg",
        "alt": "Jwi.shop hero image with stylish apparel"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Jwi.shop - Discover Your Vibe",
    "description": "Shop the latest fashion trends and timeless pieces from Jwi.shop. Curated styles directly from our Instagram page, delivered to your door. Find your perfect look today!",
    "images": [
      "http://img.b2bpic.net/free-photo/cyclist-using-smartphone-steel-bridge_613910-14382.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>
  );
}
