29 lines
868 B
TypeScript
29 lines
868 B
TypeScript
import type { Metadata } from "next";
|
||
import Script from "next/script";
|
||
import { AppShell } from "@/components/app-shell";
|
||
import { BrowserAuthProvider } from "@/components/browser-auth";
|
||
import { randomUUIDPolyfillScript } from "@/lib/client/random-uuid-polyfill";
|
||
import "./globals.css";
|
||
|
||
export const metadata: Metadata = {
|
||
title: "智念AIGC平台",
|
||
description: "智念AIGC平台:统一创作图片与视频。"
|
||
};
|
||
|
||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||
return (
|
||
<html lang="zh-CN">
|
||
<body>
|
||
<Script
|
||
id="random-uuid-polyfill"
|
||
strategy="beforeInteractive"
|
||
dangerouslySetInnerHTML={{ __html: randomUUIDPolyfillScript }}
|
||
/>
|
||
<BrowserAuthProvider>
|
||
<AppShell>{children}</AppShell>
|
||
</BrowserAuthProvider>
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|