mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
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 themes={['dark', 'light']} defaultTheme="dark" {...props}>
|
|
{children}
|
|
</NextThemesProvider>
|
|
)
|
|
}
|