MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / toggleColorMode

Function toggleColorMode

frontend/src/components/ui/color-mode.tsx:29–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27export function useColorMode(): UseColorModeReturn {
28 const { resolvedTheme, setTheme } = useTheme();
29 const toggleColorMode = () => {
30 setTheme(resolvedTheme === "dark" ? "light" : "dark");
31 };
32 return {
33 colorMode: resolvedTheme as ColorMode,
34 setColorMode: setTheme,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected