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



export const metadata: Metadata = {
  title: '3D Farm Hub | 3D Printing, Rendering & Modeling Services',
  description: 'Your premier partner for high-quality 3D printing, lightning-fast rendering farm services, and custom 3D modeling. Innovate and create with precision.',
  keywords: ["3D printing, rendering farm, 3D modeling, rapid prototyping, architectural visualization, custom models, digital fabrication"],
  openGraph: {
    "title": "3D Farm Hub | 3D Printing, Rendering & Modeling Services",
    "description": "Your premier partner for high-quality 3D printing, lightning-fast rendering farm services, and custom 3D modeling. Innovate and create with precision.",
    "url": "https://www.3dfarmhub.com",
    "siteName": "3D Farm Hub",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/3d-printer-workshop_23-2152014101.jpg",
        "alt": "Futuristic 3D printing farm"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "3D Farm Hub | 3D Printing, Rendering & Modeling Services",
    "description": "Your premier partner for high-quality 3D printing, lightning-fast rendering farm services, and custom 3D modeling. Innovate and create with precision.",
    "images": [
      "http://img.b2bpic.net/free-photo/3d-printer-workshop_23-2152014101.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`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
