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



export const metadata: Metadata = {
  title: 'EditPro Studio | Professional Video Editing Services',
  description: 'Expert video editing services for corporate, events, social media, and more. Transform your footage into captivating stories with EditPro Studio.',
  keywords: ["video editing, post-production, corporate video, wedding video, social media video, film editing, video services, creative editing"],
  openGraph: {
    "title": "EditPro Studio | Professional Video Editing Services",
    "description": "Expert video editing services for corporate, events, social media, and more. Transform your footage into captivating stories with EditPro Studio.",
    "url": "https://www.editprostudio.com",
    "siteName": "EditPro Studio",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/computer-home-office-uses-artificial-intelligence-generating-images-from-text_482257-125005.jpg",
        "alt": "Video editor at work"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "EditPro Studio | Professional Video Editing Services",
    "description": "Expert video editing services for corporate, events, social media, and more. Transform your footage into captivating stories with EditPro Studio.",
    "images": [
      "http://img.b2bpic.net/free-photo/computer-home-office-uses-artificial-intelligence-generating-images-from-text_482257-125005.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const nunito = Nunito({
  variable: "--font-nunito",
  subsets: ["latin"],
});

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