import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { translations } from "@/lib/translations";

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});

const meta = translations.hu.meta

export const metadata: Metadata = {
  title: meta.title,
  description: meta.description,
  keywords: meta.keywords,
};

import { LanguageProvider } from "@/lib/language-context";
import ScrollToTop from "@/components/scroll-to-top";

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="hu" className="scroll-smooth">
      <body
        className={`${inter.variable} font-sans antialiased`}
      >
        <LanguageProvider>
          {children}
          <ScrollToTop />
        </LanguageProvider>
      </body>
    </html>
  );
}
