import type { Metadata } from "next"
import { Inter } from "next/font/google"
import { Header } from "@/components/header"
import "./globals.css"

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

export const metadata: Metadata = {
  title: {
    default: "Higgy's Android Boxes - Cut the Cord, Keep the Content",
    template: "%s | Higgy's Android Boxes",
  },
  description:
    "Only $20/month with no hidden fees. Android streaming boxes with included tech support. Based on Vancouver Island, trusted across Canada.",
  metadataBase: new URL("https://higgysandroidboxes.com"),
  openGraph: {
    title: "Higgy's Android Boxes - Cut the Cord, Keep the Content",
    description:
      "Only $20/month with no hidden fees. Android streaming boxes with included tech support. Based on Vancouver Island, trusted across Canada.",
    url: "https://higgysandroidboxes.com",
    siteName: "Higgy's Android Boxes",
    type: "website",
    locale: "en_CA",
  },
  icons: {
    icon: [
      { url: "/icon-light-32x32.png", media: "(prefers-color-scheme: light)" },
      { url: "/icon-dark-32x32.png", media: "(prefers-color-scheme: dark)" },
      { url: "/icon.svg", type: "image/svg+xml" },
    ],
    apple: "/apple-icon.png",
  },
  other: {
    "theme-color": "#8BC34A",
  },
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en">
      <body className={inter.variable}>
        <Header />
        <main>{children}</main>
      </body>
    </html>
  )
}
