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";



export const metadata: Metadata = {
  title: 'Museo Nacional Afroperuano | Celebrating Afro-Peruvian Heritage',
  description: 'Explore the rich history, culture, and contributions of Afro-Peruvians at the Museo Nacional Afroperuano. Discover exhibitions, events, and educational programs in Lima, Peru.',
  keywords: ["Afro-Peruvian, Peru, museum, culture, history, heritage, art, exhibitions, Lima, African diaspora, cultural institution, education"],
  openGraph: {
    "title": "Museo Nacional Afroperuano | Celebrating Afro-Peruvian Heritage",
    "description": "Explore the rich history, culture, and contributions of Afro-Peruvians at the Museo Nacional Afroperuano. Discover exhibitions, events, and educational programs in Lima, Peru.",
    "url": "https://www.museoafroperuano.org",
    "siteName": "Museo Nacional Afroperuano",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/medium-shot-nigerian-dancers_23-2149029477.jpg",
        "alt": "Vibrant Afro-Peruvian cultural dance performance"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Museo Nacional Afroperuano | Celebrating Afro-Peruvian Heritage",
    "description": "Explore the rich history, culture, and contributions of Afro-Peruvians at the Museo Nacional Afroperuano. Discover exhibitions, events, and educational programs in Lima, Peru.",
    "images": [
      "http://img.b2bpic.net/free-photo/medium-shot-nigerian-dancers_23-2149029477.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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