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: 'Susan Ahn Cuddy - Pioneering American Hero | 안수산 - 선구적인 미국 영웅',
  description: 'Discover the inspiring life and legacy of Susan Ahn Cuddy, the first female gunnery officer in the US Navy and a trailblazer against racial and gender barriers.',
  openGraph: {
    "title": "Susan Ahn Cuddy - Pioneering American Hero | 안수산 - 선구적인 미국 영웅",
    "description": "Discover the inspiring life and legacy of Susan Ahn Cuddy, the first female gunnery officer in the US Navy and a trailblazer against racial and gender barriers.",
    "url": "https://susancuddy.com",
    "siteName": "Susan Ahn Cuddy",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/portrait-young-pretty-woman-winter-log-cabin-snow_657883-678.jpg",
        "alt": "Susan Ahn Cuddy in military uniform"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Susan Ahn Cuddy - Pioneering American Hero | 안수산 - 선구적인 미국 영웅",
    "description": "Discover the inspiring life and legacy of Susan Ahn Cuddy, the first female gunnery officer in the US Navy and a trailblazer against racial and gender barriers.",
    "images": [
      "http://img.b2bpic.net/free-photo/portrait-young-pretty-woman-winter-log-cabin-snow_657883-678.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>
  );
}
