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



export const metadata: Metadata = {
  title: 'DENTOXE: Brush Smarter, Ditch the Mess',
  description: 'Modern toothpaste tablets for a cleaner, easier, and eco-conscious brushing experience. No mess, no waste, just fresh breath. Shop DENTOXE today!',
  keywords: ["toothpaste tablets, eco-friendly toothpaste, travel toothpaste, plastic-free, dental hygiene, oral care, DENTOXE"],
  openGraph: {
    "title": "DENTOXE: Brush Smarter, Ditch the Mess",
    "description": "Modern toothpaste tablets for a cleaner, easier, and eco-conscious brushing experience. No mess, no waste, just fresh breath. Shop DENTOXE today!",
    "url": "https://www.dentoxe.com",
    "siteName": "DENTOXE",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/view-natural-products-assortment_23-2149413908.jpg",
        "alt": "DENTOXE toothpaste tablets"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "DENTOXE: Brush Smarter, Ditch the Mess",
    "description": "Modern toothpaste tablets for a cleaner, easier, and eco-conscious brushing experience. No mess, no waste, just fresh breath. Shop DENTOXE today!",
    "images": [
      "http://img.b2bpic.net/free-photo/view-natural-products-assortment_23-2149413908.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const nunito = Nunito({
  variable: "--font-nunito",
  subsets: ["latin"],
});

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