MCPcopy Create free account
hub / github.com/code-with-antonio/nightcode / useTheme

Function useTheme

packages/cli/src/providers/theme/index.tsx:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47const ThemeContext = createContext<ThemeContextValue | null>(null);
48
49export function useTheme(): ThemeContextValue {
50 const value = useContext(ThemeContext);
51 if (!value) {
52 throw new Error("useTheme must be used within a ThemeProvider");
53 }
54 return value;
55}
56
57type ThemeProviderProps = {
58 children: ReactNode;

Callers 13

StatusBarFunction · 0.90
SpinnerFunction · 0.90
DialogSearchListFunction · 0.90
FileMentionMenuFunction · 0.90
InputBarFunction · 0.90
ErrorMessageFunction · 0.90
BotMessageFunction · 0.90
UserMessageFunction · 0.90
CommandMenuFunction · 0.90
ThemeDialogContentFunction · 0.90
ThemedRootFunction · 0.90
DialogFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected