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



export const metadata: Metadata = {
  title: 'Best Plumbing 24 Inc. - 24/7 Expert Plumbing Services in Fort Lauderdale',
  description: 'Reliable and emergency plumbing services in Fort Lauderdale, FL. Our expert plumbers offer fair prices, quality work, and 24/7 availability for all your residential and commercial plumbing needs.',
  openGraph: {
    "title": "Best Plumbing 24 Inc. - 24/7 Expert Plumbing Services in Fort Lauderdale",
    "description": "Reliable and emergency plumbing services in Fort Lauderdale, FL. Our expert plumbers offer fair prices, quality work, and 24/7 availability for all your residential and commercial plumbing needs.",
    "url": "/",
    "siteName": "Best Plumbing 24 Inc.",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/young-woman-construction-uniform-yellow-safety-helmet-standing-with-raised-hands-holding-adjustable-wrenches-annoyed-frustrated-shouting-with-anger-blue-isolated-background_141793-11509.jpg",
        "alt": "Professional plumber working on a pipe"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Best Plumbing 24 Inc. - 24/7 Expert Plumbing Services in Fort Lauderdale",
    "description": "Reliable and emergency plumbing services in Fort Lauderdale, FL. Our expert plumbers offer fair prices, quality work, and 24/7 availability for all your residential and commercial plumbing needs.",
    "images": [
      "http://img.b2bpic.net/free-photo/young-woman-construction-uniform-yellow-safety-helmet-standing-with-raised-hands-holding-adjustable-wrenches-annoyed-frustrated-shouting-with-anger-blue-isolated-background_141793-11509.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  subsets: ["latin"],
});

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