27 lines
682 B
TypeScript
27 lines
682 B
TypeScript
import type { Metadata } from "next"
|
|
import type { ReactNode } from "react"
|
|
|
|
import { getAdminMessages, resolveAdminLocale } from "@/i18n/server"
|
|
import "./globals.css"
|
|
import { Providers } from "./providers"
|
|
|
|
export const metadata: Metadata = {
|
|
title: "CMS Admin",
|
|
description: "Admin dashboard for the CMS monorepo",
|
|
}
|
|
|
|
export default async function RootLayout({ children }: { children: ReactNode }) {
|
|
const locale = await resolveAdminLocale()
|
|
const messages = await getAdminMessages(locale)
|
|
|
|
return (
|
|
<html lang={locale}>
|
|
<body>
|
|
<Providers locale={locale} messages={messages}>
|
|
{children}
|
|
</Providers>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|