Files
stock-manager/src/app/layout.tsx
T

39 lines
778 B
TypeScript

import "@/styles/globals.css"
import type { Metadata } from "next"
import { Geist, Geist_Mono } from "next/font/google"
import { getI18n } from "@/i18n/server"
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
})
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
})
export const metadata: Metadata = {
title: "Stock Manager",
description: "Manage your inventory with ease",
}
export default async function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
const { locale } = await getI18n()
return (
<html lang={locale}>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
</body>
</html>
)
}