Download apps/web/src/provider/theme.tsx from fukeke/rss: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/spaces/fukeke/rss/resolve/main/apps/web/src/provider/theme.tsx
- Command line
-
hf download hf://spaces/fukeke/rss/apps/web/src/provider/theme.tsx
-
curl -L -o theme.tsx https://huggingface.co/spaces/fukeke/rss/resolve/main/apps/web/src/provider/theme.tsx
490 Bytes
| import { NextUIProvider } from '@nextui-org/react'; | |
| import { ThemeProvider as NextThemesProvider } from 'next-themes'; | |
| import { useNavigate } from 'react-router-dom'; | |
| function ThemeProvider({ children }: { children: React.ReactNode }) { | |
| const navigate = useNavigate(); | |
| return ( | |
| <NextUIProvider navigate={navigate}> | |
| <NextThemesProvider attribute="class" enableSystem> | |
| {children} | |
| </NextThemesProvider> | |
| </NextUIProvider> | |
| ); | |
| } | |
| export default ThemeProvider; | |