theme-provider.tsx
300 bytes
| 1 | 'use client'; |
|---|---|
| 2 | |
| 3 | import { ThemeProvider as NextThemesProvider } from 'next-themes'; |
| 4 | import type * as React from 'react'; |
| 5 | |
| 6 | export function ThemeProvider({ children, ...props }: React.ComponentProps<typeof NextThemesProvider>) { |
| 7 | return <NextThemesProvider {...props}>{children}</NextThemesProvider>; |
| 8 | } |
| 9 | |