import type { Metadata } from "next";
import "./globals.css";
import { SiteChrome } from "@/components/layout/SiteChrome";
import { SITE_NAME, TAGLINE } from "@/lib/constants";
import { siteUrl } from "@/lib/seo";

export const metadata: Metadata = {
  metadataBase: new URL(siteUrl),
  title: {
    default: `${SITE_NAME} | ${TAGLINE}`,
    template: `%s | ${SITE_NAME}`,
  },
  description:
    "Bashista Auto electric scooter showroom serving Bharatpur, Chitwan and Kawasoti, Nawalpur.",
  openGraph: {
    title: `${SITE_NAME} | ${TAGLINE}`,
    description:
      "Electric scooter showroom serving Bharatpur, Chitwan and Kawasoti, Nawalpur.",
    url: siteUrl,
    siteName: SITE_NAME,
    type: "website",
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body>
        <SiteChrome>{children}</SiteChrome>
      </body>
    </html>
  );
}
