import React from "react";
import type { Metadata } from "next";

import "./globals.css";

export const metadata: Metadata = {
  title: "Uniwor - Your Business Deserves Better Decisions",
  description:
    "Uniwor shows you what's happening, what's coming, and what to do next in real time. Generative Business Intelligence for Analysts.",
  metadataBase: new URL("https://uniwor.com"),
  openGraph: {
    type: "website",
    url: "https://uniwor.com/",
    title: "Uniwor - Your Business Deserves Better Decisions",
    description:
      "Uniwor shows you what's happening, what's coming, and what to do next in real time. Generative Business Intelligence for Analysts.",
    images: [
      {
        url: "https://uniwor.com/images/Uniwor-Logo.png",
        width: 1200,
        height: 630,
        alt: "Uniwor Logo",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Uniwor - Your Business Deserves Better Decisions",
    description:
      "Uniwor shows you what's happening, what's coming, and what to do next in real time. Generative Business Intelligence for Analysts.",
    images: ["https://uniwor.com/images/Uniwor-Logo.png"],
  },
  icons: {
    icon: [
      { url: "/favicons/favicon.ico", sizes: "any" },
      { url: "/favicons/favicon-16x16.png", sizes: "16x16", type: "image/png" },
      { url: "/favicons/favicon-32x32.png", sizes: "32x32", type: "image/png" },
    ],
    apple: [
      {
        url: "/favicons/apple-touch-icon.png",
        sizes: "180x180",
        type: "image/png",
      },
    ],
    other: [
      {
        rel: "android-chrome-192x192",
        url: "/favicons/android-chrome-192x192.png",
      },
      {
        rel: "android-chrome-512x512",
        url: "/favicons/android-chrome-512x512.png",
      },
    ],
  },
  manifest: "/favicons/site.webmanifest",
};

type RootLayoutProps = Readonly<{
  children: React.ReactNode;
}>;

export default function RootLayout({ children }: RootLayoutProps) {
  return (
    <html lang="en">
      <body className="font-sans antialiased" suppressHydrationWarning>
        {children}
      </body>
    </html>
  );
}
