@ -16,9 +16,17 @@ export default function ThemeToggle() {
window.localStorage.setItem("theme", activeTheme);
}, [activeTheme]);
if(activeTheme == 'light') {
return (
<a onClick={() => setActiveTheme(inactiveTheme)} href="#">
<span>🌙</span>
</a>
)
} else {
<span>☀️</span>
}