2025-03-20 01:46:54 +08:00
|
|
|
"use client"
|
|
|
|
|
import { steamStore } from "@/store/steam"
|
|
|
|
|
import { useEffect } from "react"
|
2024-11-11 10:04:00 +08:00
|
|
|
import "./globals.css"
|
2025-03-12 11:22:32 +08:00
|
|
|
import Providers from "./providers"
|
2025-03-20 01:46:54 +08:00
|
|
|
import { init } from "@/store"
|
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
void init()
|
|
|
|
|
})
|
2024-09-20 23:15:42 +08:00
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<html lang="en">
|
2025-03-14 19:25:11 +08:00
|
|
|
<body>
|
2025-03-12 11:22:32 +08:00
|
|
|
<Providers>{children}</Providers>
|
|
|
|
|
</body>
|
2024-09-20 23:15:42 +08:00
|
|
|
</html>
|
|
|
|
|
)
|
|
|
|
|
}
|