MCPcopy Create free account
hub / github.com/9d8dev/directory / toggleTheme

Function toggleTheme

components/theme-toggle.tsx:13–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 const { theme, setTheme } = useTheme();
12
13 const toggleTheme = () => {
14 setTheme(theme === "dark" ? "light" : "dark");
15 };
16
17 return (
18 <Button variant="outline" size="icon" onClick={toggleTheme}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected