MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / useTheme

Function useTheme

app/components/ThemeProvider.tsx:71–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69}
70
71export function useTheme(): ThemeContextType {
72 const context = useContext(ThemeContext);
73 if (context === undefined) {
74 throw new Error("useTheme must be used within a ThemeProvider");
75 }
76 return context;
77}
78
79const clientThemeCode = `
80;(() => {

Callers 6

AppFunction · 0.90
JsonPreviewFunction · 0.90
ThemeModeTogglerFunction · 0.90
CodeViewerFunction · 0.90
CodeEditorFunction · 0.90
SidebarLinkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected