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



export const metadata: Metadata = {
  title: 'TV Care Centre | Expert & Budget-Friendly TV Repair',
  description: 'Your trusted partner for expert, budget-friendly TV repair services. We offer dedicated, timely, and high-quality solutions to bring your entertainment back to life. Proudly serving happy families.',
  keywords: ["TV repair, television service, budget-friendly, screen repair, power fix, smart TV repair, electronics repair, TV Care Centre"],
  openGraph: {
    "title": "TV Care Centre | Expert & Budget-Friendly TV Repair",
    "description": "Your trusted partner for expert, budget-friendly TV repair services. We offer dedicated, timely, and high-quality solutions to bring your entertainment back to life. Proudly serving happy families.",
    "url": "https://www.tvcarecentre.com",
    "siteName": "TV Care Centre",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/man-with-tattoos-producing-craft-beer_23-2148110979.jpg",
        "alt": "Technician repairing a TV"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "TV Care Centre | Expert & Budget-Friendly TV Repair",
    "description": "Your trusted partner for expert, budget-friendly TV repair services. We offer dedicated, timely, and high-quality solutions to bring your entertainment back to life. Proudly serving happy families.",
    "images": [
      "http://img.b2bpic.net/free-photo/man-with-tattoos-producing-craft-beer_23-2148110979.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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