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



export const metadata: Metadata = {
  title: 'Zhong Yi Idea TCM Clinic | Edmonton Traditional Chinese Medicine',
  description: 'Experience holistic healing at Zhong Yi Idea TCM Clinic in Edmonton. Offering acupuncture, herbal medicine, and cupping with bilingual English/Mandarin care. Book online today!',
  keywords: ["TCM, Traditional Chinese Medicine, Edmonton, Acupuncture, Herbal Medicine, Cupping, Chinese Clinic, Wellness, Natural Healing, Pain Relief, Bilingual, Mandarin, Preventative Care"],
  openGraph: {
    "title": "Zhong Yi Idea TCM Clinic | Edmonton Traditional Chinese Medicine",
    "description": "Experience holistic healing at Zhong Yi Idea TCM Clinic in Edmonton. Offering acupuncture, herbal medicine, and cupping with bilingual English/Mandarin care. Book online today!",
    "url": "https://www.zhongyitcm.com",
    "siteName": "Zhong Yi Idea TCM Clinic",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/serene-minimalist-spa-interior-meditation-space_23-2151935113.jpg",
        "alt": "Acupuncture treatment at Zhong Yi Idea TCM Clinic"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Zhong Yi Idea TCM Clinic | Edmonton Traditional Chinese Medicine",
    "description": "Experience holistic healing at Zhong Yi Idea TCM Clinic in Edmonton. Offering acupuncture, herbal medicine, and cupping with bilingual English/Mandarin care. Book online today!",
    "images": [
      "http://img.b2bpic.net/free-photo/serene-minimalist-spa-interior-meditation-space_23-2151935113.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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