21 lines
649 B
TypeScript
21 lines
649 B
TypeScript
import type { Metadata } from "next";
|
||
import { AppShell } from "@/components/app-shell";
|
||
import { getShellAuthState } from "@/lib/server/auth/current-user";
|
||
import "./globals.css";
|
||
|
||
export const metadata: Metadata = {
|
||
title: "智念AIGC平台",
|
||
description: "智念AIGC平台:统一创作图片、视频、局部重绘与智能超清。"
|
||
};
|
||
|
||
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
||
const auth = await getShellAuthState();
|
||
return (
|
||
<html lang="zh-CN">
|
||
<body>
|
||
<AppShell user={auth.user} authRequired={auth.authRequired}>{children}</AppShell>
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|