import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import { Providers } from "./providers";

const sans = localFont({
  src: [
    {
      path: "../assets/fonts/Arimo-Regular.ttf",
      weight: "400",
      style: "normal",
    },
    {
      path: "../assets/fonts/Arimo-Bold.ttf",
      weight: "700",
      style: "normal",
    },
  ],
  display: "swap",
});

const SITE_NAME = "Songs2VID";
const DEFAULT_TITLE = "Songs2VID";
const DEFAULT_DESCRIPTION =
  "Payment-free self-hosted audio-to-video creation and YouTube uploading.";

export const metadata: Metadata = {
  title: DEFAULT_TITLE,
  description: DEFAULT_DESCRIPTION,
  applicationName: SITE_NAME,
  icons: {
    icon: "/favicon.png",
  },
};

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