mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 06:16:37 +08:00
35 lines
895 B
TypeScript
35 lines
895 B
TypeScript
import type { Metadata } from 'next';
|
|
import Script from 'next/script';
|
|
import type { ReactNode } from 'react';
|
|
|
|
import { AppProviders } from '@/components/providers/app-providers';
|
|
import { getThemeInitScript } from '@/lib/theme/theme';
|
|
|
|
import './globals.css';
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: 'ATSFlare 控制台',
|
|
template: '%s | ATSFlare',
|
|
},
|
|
description: 'ATSFlare 管理端新版工程骨架',
|
|
applicationName: 'ATSFlare',
|
|
};
|
|
|
|
interface RootLayoutProps {
|
|
children: ReactNode;
|
|
}
|
|
|
|
export default function RootLayout({ children }: RootLayoutProps) {
|
|
return (
|
|
<html lang='zh-CN' suppressHydrationWarning>
|
|
<body>
|
|
<Script id='theme-init' strategy='beforeInteractive'>
|
|
{getThemeInitScript()}
|
|
</Script>
|
|
<AppProviders>{children}</AppProviders>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|