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: 'Reseller Success Hub - Your Source for Digital Products',
  description: 'Discover high-demand digital products, templates, and guides to kickstart and scale your reseller business. Buy, rebrand, and sell for profit.',
  keywords: ["reseller, digital products, PLR, private label rights, MRR, master resell rights, passive income, online business, templates, guides, prompts, DM scripts"],
  openGraph: {
    "title": "Reseller Success Hub - Grow Your Digital Business",
    "description": "Find everything you need to succeed as a digital product reseller. Easy to use, ready to sell assets for maximum profit.",
    "url": "https://www.resellersuccesshub.com",
    "siteName": "Reseller Success Hub",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/portrait-handsome-man-cafe-sitting-with-laptop-working-remotely-freelancer-with-phone-hands-shows-okay-ok-gesture-approval-agree-with-something-like-product_1258-314217.jpg",
        "alt": "Reseller Success Hub landing page screenshot"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Reseller Success Hub - Grow Your Digital Business",
    "description": "Find everything you need to succeed as a digital product reseller. Easy to use, ready to sell assets for maximum profit.",
    "images": [
      "http://img.b2bpic.net/free-photo/portrait-handsome-man-cafe-sitting-with-laptop-working-remotely-freelancer-with-phone-hands-shows-okay-ok-gesture-approval-agree-with-something-like-product_1258-314217.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});
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={`${inter.variable} ${openSans.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
