MCPcopy Create free account
hub / github.com/BingyanStudio/github-analyzer / toggleTheme

Function toggleTheme

web/src/components/ThemeToggle.tsx:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 const { theme, setTheme } = useTheme();
7
8 const toggleTheme = () => {
9 const newTheme = theme === "dark" ? "light" : "dark";
10 console.log(`Switching theme from ${theme} to ${newTheme}`);
11 setTheme(newTheme);
12 };
13
14 // Log the current theme to help with debugging
15 console.log("Current theme:", theme);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected