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

Function useColorModeValue

frontend/src/components/ui/color-mode.tsx:39–42  ·  view source on GitHub ↗
(light: T, dark: T)

Source from the content-addressed store, hash-verified

37}
38
39export function useColorModeValue<T>(light: T, dark: T) {
40 const { colorMode } = useColorMode();
41 return colorMode === "dark" ? dark : light;
42}
43
44export function ColorModeIcon() {
45 const { colorMode } = useColorMode();

Callers

nothing calls this directly

Calls 1

useColorModeFunction · 0.85

Tested by

no test coverage detected