({ children }: { children: React.ReactNode })
| 31 | } |
| 32 | |
| 33 | export function Providers({ children }: { children: React.ReactNode }) { |
| 34 | const pathname = usePathname(); |
| 35 | const website = FORCE_DARK_MODE_PAGES.includes(pathname); |
| 36 | return ( |
| 37 | <ThemeProvider |
| 38 | attribute="class" |
| 39 | disableTransitionOnChange |
| 40 | forcedTheme={website ? 'dark' : undefined} |
| 41 | > |
| 42 | <ThemeWatcher /> |
| 43 | {children} |
| 44 | </ThemeProvider> |
| 45 | ); |
| 46 | } |
nothing calls this directly
no outgoing calls
no test coverage detected