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



export const metadata: Metadata = {
  title: 'RoboFlow AI - Animated Platform for Computer Vision',
  description: 'Revolutionize computer vision with RoboFlow AI\'s animated platform. Build, train, and deploy custom object detection models with unparalleled ease and speed.',
  keywords: ["AI, computer vision, object detection, machine learning, deep learning, data labeling, model training, AI platform, Roboflow"],
  openGraph: {
    "title": "RoboFlow AI - Animated Platform for Computer Vision",
    "description": "Revolutionize computer vision with RoboFlow AI's animated platform. Build, train, and deploy custom object detection models with unparalleled ease and speed.",
    "url": "https://www.roboflowai.com",
    "siteName": "RoboFlow AI",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/3d-render-abstract-modern-network-communications-background-with-plexus-design_1048-15652.jpg",
        "alt": "AI Object Detection Interface"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "RoboFlow AI - Animated Platform for Computer Vision",
    "description": "Revolutionize computer vision with RoboFlow AI's animated platform. Build, train, and deploy custom object detection models with unparalleled ease and speed.",
    "images": [
      "http://img.b2bpic.net/free-photo/3d-render-abstract-modern-network-communications-background-with-plexus-design_1048-15652.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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