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