Files
ProxMenux/web/app/layout.tsx

24 lines
843 B
TypeScript
Raw Normal View History

2025-02-13 17:28:49 +01:00
import "./globals.css"
2025-02-18 22:58:20 +01:00
import { Inter } from "next/font/google"
2025-02-16 11:29:56 +01:00
import type React from "react"
2025-02-13 17:28:49 +01:00
const inter = Inter({ subsets: ["latin"] })
/**
* Minimal root layout the localized layout under [locale]/ does the
* real work (provider, navbar, etc.) but cannot own <html>/<body> tags
* because Next.js requires those at the root level. Lang is set to the
* default locale here and refined client-side from inside the locale
* layout so the page still renders correctly with JS disabled (defaults
* to English) and switches to the active locale once hydrated.
*/
2025-02-18 22:58:20 +01:00
export default function RootLayout({ children }: { children: React.ReactNode }) {
2025-02-13 17:28:49 +01:00
return (
<html lang="en" className="dark">
<body className={`${inter.className} bg-background text-foreground antialiased`}>
{children}
2025-02-13 17:28:49 +01:00
</body>
</html>
)
2025-02-18 22:58:20 +01:00
}