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 { getVisualEditScript } from "@/utils/visual-edit-script";
import { Mulish } from "next/font/google";



export const metadata: Metadata = {
  title: 'Flow Electrical Contractors | Reliable Electricians in Leeds',
  description: 'Professional and certified electricians in Leeds and surrounding areas. Offering fast, safe, and trustworthy electrical services from rewires to fault finding.',
  keywords: ["electrician Leeds, electrical contractors Leeds, emergency electrician, local electrician, rewiring Leeds, fault finding, consumer unit upgrade, NICEIC, CSCS"],
  openGraph: {
    "title": "Flow Electrical Contractors | Reliable Electricians in Leeds",
    "description": "Professional and certified electricians in Leeds and surrounding areas. Offering fast, safe, and trustworthy electrical services from rewires to fault finding.",
    "url": "https://www.flowelectrical.co.uk",
    "siteName": "Flow Electrical Contractors",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/male-electrician-works-switchboard-with-electrical-connecting-cable_169016-53650.jpg",
        "alt": "Electrician working on electrical wiring"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Flow Electrical Contractors | Reliable Electricians in Leeds",
    "description": "Professional and certified electricians in Leeds and surrounding areas. Offering fast, safe, and trustworthy electrical services from rewires to fault finding.",
    "images": [
      "http://img.b2bpic.net/free-photo/male-electrician-works-switchboard-with-electrical-connecting-cable_169016-53650.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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