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: 'Premium Paliwa Gas Station - Quality Fuels & Services in Poland',
  description: 'Your trusted Premium Paliwa gas station in Poland, offering high-quality fuels, convenient services, and a welcoming experience for every journey.',
  openGraph: {
    "title": "Premium Paliwa Gas Station",
    "description": "High-quality fuels and comprehensive services for your journey in Poland.",
    "url": "https://www.premiumpaliwa.pl",
    "siteName": "Premium Paliwa",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/view-woman-with-car-gas-station_23-2150516375.jpg",
        "alt": "Modern Premium Paliwa gas station at night"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Premium Paliwa Gas Station",
    "description": "High-quality fuels and comprehensive services for your journey in Poland.",
    "images": [
      "http://img.b2bpic.net/free-photo/view-woman-with-car-gas-station_23-2150516375.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>
  );
}
