2025-04-26 14:18:08 +08:00
|
|
|
'use server'
|
2025-03-11 14:57:23 +08:00
|
|
|
import {ReactNode} from 'react'
|
|
|
|
|
import {Metadata} from 'next'
|
|
|
|
|
import './globals.css'
|
2025-03-19 15:49:18 +08:00
|
|
|
import {Toaster} from '@/components/ui/sonner'
|
2025-06-22 10:58:41 +08:00
|
|
|
import StoresProvider from '@/components/stores-provider'
|
2025-06-18 17:57:12 +08:00
|
|
|
import Effects from '@/app/effects'
|
2025-03-04 10:10:35 +08:00
|
|
|
|
2025-04-26 14:18:08 +08:00
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
|
|
|
return {
|
2025-06-05 16:41:30 +08:00
|
|
|
title: '蓝狐代理',
|
2025-04-26 14:18:08 +08:00
|
|
|
}
|
2025-03-11 14:57:23 +08:00
|
|
|
}
|
2025-03-04 10:10:35 +08:00
|
|
|
|
2025-04-08 11:21:58 +08:00
|
|
|
export default async function RootLayout({
|
2025-03-04 10:10:35 +08:00
|
|
|
children,
|
|
|
|
|
}: Readonly<{
|
2025-04-07 15:42:09 +08:00
|
|
|
children: ReactNode
|
2025-03-04 10:10:35 +08:00
|
|
|
}>) {
|
|
|
|
|
return (
|
2025-04-25 09:19:31 +08:00
|
|
|
<html lang="zh-CN">
|
2025-12-04 19:07:48 +08:00
|
|
|
<body>
|
2025-11-18 19:16:24 +08:00
|
|
|
<StoresProvider>
|
|
|
|
|
<Effects>{children}</Effects>
|
2025-06-22 10:58:41 +08:00
|
|
|
</StoresProvider>
|
2025-06-07 11:49:57 +08:00
|
|
|
<Toaster position="top-center" richColors expand/>
|
2025-03-04 10:10:35 +08:00
|
|
|
</body>
|
|
|
|
|
</html>
|
2025-03-11 14:57:23 +08:00
|
|
|
)
|
2025-03-04 10:10:35 +08:00
|
|
|
}
|