Spaces:
Running
Running
Download web/src/components/providers.tsx from Aynkhn/WorkPilot-AI: direct link, hf CLI and curl.
- Browser
- Download file 787 Bytes
-
https://huggingface.co/spaces/Aynkhn/WorkPilot-AI/resolve/main/web/src/components/providers.tsx
- Command line
-
hf download hf://spaces/Aynkhn/WorkPilot-AI/web/src/components/providers.tsx
-
curl -L -o providers.tsx https://huggingface.co/spaces/Aynkhn/WorkPilot-AI/resolve/main/web/src/components/providers.tsx
787 Bytes
| "use client"; | |
| import { ThemeProvider } from "next-themes"; | |
| import type { ReactNode } from "react"; | |
| import { Toaster } from "@/components/ui/sonner"; | |
| import { TooltipProvider } from "@/components/ui/tooltip"; | |
| import { AuthProvider } from "@/lib/auth"; | |
| import { I18nProvider } from "@/lib/i18n"; | |
| export function Providers({ children }: { children: ReactNode }) { | |
| return ( | |
| <ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange> | |
| <I18nProvider> | |
| <AuthProvider> | |
| <TooltipProvider delayDuration={200}> | |
| {children} | |
| <Toaster position="bottom-right" richColors closeButton /> | |
| </TooltipProvider> | |
| </AuthProvider> | |
| </I18nProvider> | |
| </ThemeProvider> | |
| ); | |
| } | |