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: 'ChatFlow AI - Instant Answers, Always On',
  description: 'Revolutionize customer support and engagement with our AI-powered chat agent. Get instant answers, scale smarter, and provide 24/7 assistance.',
  keywords: ["AI chat agent, AI chatbot, customer support AI, real-time chat, instant answers, conversational AI, business automation, SaaS AI"],
  openGraph: {
    "title": "ChatFlow AI - Instant Answers, Always On",
    "description": "Revolutionize customer support and engagement with our AI-powered chat agent. Get instant answers, scale smarter, and provide 24/7 assistance.",
    "url": "https://www.chatflowai.com",
    "siteName": "ChatFlow AI",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/customer-relationship-management-concept_23-2150038403.jpg",
        "alt": "AI chat agent interface"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "ChatFlow AI - Instant Answers, Always On",
    "description": "Revolutionize customer support and engagement with our AI-powered chat agent. Get instant answers, scale smarter, and provide 24/7 assistance.",
    "images": [
      "http://img.b2bpic.net/free-photo/customer-relationship-management-concept_23-2150038403.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>
  );
}
