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";



export const metadata: Metadata = {
  title: 'Woodbine Plumbing: Your Trusted Local Plumbers',
  description: 'Woodbine Plumbing offers expert residential and commercial plumbing services including leak repair, drain cleaning, and water heater installation. Reliable and professional solutions.',
  openGraph: {
    "title": "Woodbine Plumbing: Your Trusted Local Plumbers",
    "description": "Woodbine Plumbing offers expert residential and commercial plumbing services including leak repair, drain cleaning, and water heater installation. Reliable and professional solutions.",
    "url": "https://woodbineplumbing.com",
    "siteName": "Woodbine Plumbing",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721575.jpg",
        "alt": "Professional plumber inspecting pipes"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Woodbine Plumbing: Your Trusted Local Plumbers",
    "description": "Woodbine Plumbing offers expert residential and commercial plumbing services including leak repair, drain cleaning, and water heater installation. Reliable and professional solutions.",
    "images": [
      "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721575.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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={`${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
