Works great - there's a horrible hydration warning that shows on my Dev. I ended up updating the theme-provider.tsx to:
"use client";
import { ThemeProvider as NextThemesProvider, ThemeProviderProps } from "next-themes";
import { useEffect, useState } from "react";
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
const [mounted, setMounted] = useState(false);
useEffect(() => {
setMounted(true);
}, []);
if (!mounted) {
return <>{children}</>;
}
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
}
Works great - there's a horrible hydration warning that shows on my Dev. I ended up updating the
theme-provider.tsxto: