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



export const metadata: Metadata = {
  title: 'DYSRVPT | Documenting African Culture In Motion',
  description: 'DYSRVPT is a culture-first media house documenting the people, places, sounds, and movements shaping contemporary African creativity and culture. Stay DYSRVPTIVE.',
  openGraph: {
    "title": "DYSRVPT | Documenting African Culture In Motion",
    "description": "DYSRVPT is a culture-first media house documenting the people, places, sounds, and movements shaping contemporary African creativity and culture. Stay DYSRVPTIVE.",
    "url": "https://www.dysrvpt.com",
    "siteName": "DYSRVPT",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/party-girl-with-lights_23-2147640523.jpg",
        "alt": "Dynamic African cultural footage"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "DYSRVPT | Documenting African Culture In Motion",
    "description": "DYSRVPT is a culture-first media house documenting the people, places, sounds, and movements shaping contemporary African creativity and culture. Stay DYSRVPTIVE.",
    "images": [
      "http://img.b2bpic.net/free-photo/party-girl-with-lights_23-2147640523.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  subsets: ["latin"],
});

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