components/theme-changer/theme-changer.tsx
Function ThemeChanger
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ThemeChanger() {
const [mounted, setMounted] = useState(false);
const { resolvedTheme, setTheme } = useTheme();
useEffect(() => setMounted(true), []);