Download src/shared/components/ThemeProvider.js from shimen/kirway: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/spaces/shimen/kirway/resolve/main/src/shared/components/ThemeProvider.js
- Command line
-
hf download hf://spaces/shimen/kirway/src/shared/components/ThemeProvider.js
-
curl -L -o ThemeProvider.js https://huggingface.co/spaces/shimen/kirway/resolve/main/src/shared/components/ThemeProvider.js
273 Bytes
| "use client"; | |
| import { useEffect } from "react"; | |
| import useThemeStore from "@/store/themeStore"; | |
| export function ThemeProvider({ children }) { | |
| const { initTheme } = useThemeStore(); | |
| useEffect(() => { | |
| initTheme(); | |
| }, [initTheme]); | |
| return <>{children}</>; | |
| } | |