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 { getVisualEditScript } from "@/utils/visual-edit-script";
import { DM_Sans } from "next/font/google";
import { Poppins } from "next/font/google";



export const metadata: Metadata = {
  title: 'Office Space for Rent in St Albans | Hot Desks & Meeting Rooms from £75/week.',
  description: 'Find flexible office space, hot desks, and meeting rooms in St Albans city centre. Bills included, flexible leases, and confident value for your business.',
  keywords: ["office space St Albans, hot desk St Albans, meeting room hire St Albans, flexible office space Hertfordshire, co-working St Albans, serviced offices St Albans"],
  openGraph: {
    "title": "Office Space for Rent in St Albans | Hot Desks & Meeting Rooms from £75/week.",
    "description": "Find flexible office space, hot desks, and meeting rooms in St Albans city centre. Bills included, flexible leases, and confident value for your business.",
    "url": "https://www.stalbansofficespace.co.uk",
    "siteName": "St Albans Office Space",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/self-employed-analyst-working-financial-audits-budget-planning-laptop_482257-90911.jpg",
        "alt": "Modern office space in St Albans"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Office Space for Rent in St Albans | Hot Desks & Meeting Rooms from £75/week.",
    "description": "Find flexible office space, hot desks, and meeting rooms in St Albans city centre. Bills included, flexible leases, and confident value for your business.",
    "images": [
      "http://img.b2bpic.net/free-photo/self-employed-analyst-working-financial-audits-budget-planning-laptop_482257-90911.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};


const poppins = Poppins({
  variable: "--font-poppins",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

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