()
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected