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: 'Henry\'s Fence Inc | Quality Fence Installation & Repair',
  description: 'Henry\'s Fence Inc provides professional fence installation, repair, and maintenance services for residential and commercial properties. Explore our portfolio and get a free estimate today!',
  keywords: ["fence installation, fence repair, wood fence, vinyl fence, iron fence, chain link fence, privacy fence, security fence, fence contractor, Henry's Fence Inc"],
  openGraph: {
    "title": "Henry's Fence Inc | Quality Fence Installation & Repair",
    "description": "Henry's Fence Inc provides professional fence installation, repair, and maintenance services for residential and commercial properties. Explore our portfolio and get a free estimate today!",
    "url": "https://henrysfenceinc.com",
    "siteName": "Henry's Fence Inc",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/workers-having-little-chat-while-having-cup-coffee_329181-15634.jpg",
        "alt": "Newly installed wooden fence"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Henry's Fence Inc | Quality Fence Installation & Repair",
    "description": "Henry's Fence Inc provides professional fence installation, repair, and maintenance services for residential and commercial properties. Explore our portfolio and get a free estimate today!",
    "images": [
      "http://img.b2bpic.net/free-photo/workers-having-little-chat-while-having-cup-coffee_329181-15634.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  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={`${dmSans.variable} ${inter.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
