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



export const metadata: Metadata = {
  title: 'NANDAPE Electrical Supply | Premium Electrical Solutions',
  description: 'NANDAPE Electrical Supply provides high-quality electrical equipment for homes, businesses, and industries in Kariakoo, Dar es Salaam.',
  keywords: ["NANDAPE, electrical supply, electrical equipment, Kariakoo, Dar es Salaam, LV Panels, Star Delta Starters, Busbar Chambers, Automatic Changeover Switches, Power Factor Correction, Pump Control Systems"],
  openGraph: {
    "title": "NANDAPE Electrical Supply | Powering Your World",
    "description": "Quality Electrical Equipment for Homes, Businesses & Industries in Kariakoo, Dar es Salaam.",
    "url": "/",
    "siteName": "NANDAPE Electrical Supply",
    "images": [
      {
        "url": "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3D1gZfwsBQbdsAwSd8BzeQruT2j/uploaded-1780509835774-96d7qsfi.png",
        "alt": "NANDAPE Electrical Supply Logo"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "NANDAPE Electrical Supply | Powering Your World",
    "description": "Quality Electrical Equipment for Homes, Businesses & Industries in Kariakoo, Dar es Salaam.",
    "images": [
      "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3D1gZfwsBQbdsAwSd8BzeQruT2j/uploaded-1780509835774-96d7qsfi.png"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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