mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
* init fix * more * more * change storageKey * added deep-dark css selectors as a workaround * update css
15 lines
404 B
TypeScript
15 lines
404 B
TypeScript
'use client'
|
|
|
|
import { ThemeProvider as NextThemesProvider } from 'next-themes'
|
|
import type { ThemeProviderProps } from 'next-themes/dist/types'
|
|
|
|
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
|
// @ts-ignore next-themes is old :/
|
|
|
|
return (
|
|
<NextThemesProvider {...props} themes={['dark', 'light']} defaultTheme="dark">
|
|
{children}
|
|
</NextThemesProvider>
|
|
)
|
|
}
|