We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 629b5c7 commit c50a9a4Copy full SHA for c50a9a4
components/theme-provider.tsx
@@ -2,7 +2,7 @@
2
3
import * as React from "react";
4
import { ThemeProvider as NextThemesProvider } from "next-themes";
5
-import { type ThemeProviderProps } from "next-themes/dist/types";
+type ThemeProviderProps = React.ComponentProps<typeof NextThemesProvider>;
6
7
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
8
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
0 commit comments