import type { Metadata } from "next";
import "./[locale]/global.css";
import React from "react";
import { NextIntlClientProvider } from "next-intl";

export const metadata: Metadata = {
	title: "中 V 档案馆"
};

export default async function RootLayout({
	children
}: Readonly<{
	children: React.ReactNode;
}>) {
	return (
		<html lang="zh-CN">
			<head>
				<meta charSet="UTF-8" />
				<meta name="viewport" content="width=device-width, initial-scale=1.0" />
			</head>
			<body className="min-h-screen flex flex-col">
				<NextIntlClientProvider>
					{children}
					<div id="portal-root"></div>
				</NextIntlClientProvider>
			</body>
		</html>
	);
}
