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: 'DigitalCrafters - Website, Bots, AI Video & Image Services',
  description: 'Unlock digital potential with DigitalCrafters. We offer expert website creation, Telegram bot development, AI video generation, and AI image services for modern businesses.',
  keywords: ["website creation, telegram bots, AI video, AI images, digital services, web development, bot development, artificial intelligence, marketing content"],
  openGraph: {
    "title": "DigitalCrafters - Website, Bots, AI Video & Image Services",
    "description": "Unlock digital potential with DigitalCrafters. We offer expert website creation, Telegram bot development, AI video generation, and AI image services for modern businesses.",
    "url": "https://www.digitalcrafters.com",
    "siteName": "DigitalCrafters",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/futuristic-ai-data-visualization_23-2151977857.jpg",
        "alt": "Futuristic digital workspace"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "DigitalCrafters - Website, Bots, AI Video & Image Services",
    "description": "Unlock digital potential with DigitalCrafters. We offer expert website creation, Telegram bot development, AI video generation, and AI image services for modern businesses.",
    "images": [
      "http://img.b2bpic.net/free-photo/futuristic-ai-data-visualization_23-2151977857.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>
  );
}
