Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BingyanStudio/github-analyzer
/ useTheme
Function
useTheme
web/src/components/theme-provider.tsx:66–73 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
64
}
65
66
export const useTheme = () => {
67
const context = useContext(ThemeProviderContext)
68
69
if (context === undefined)
70
throw new Error(
"useTheme must be used within a ThemeProvider"
)
71
72
return context
73
}
Callers
1
ThemeToggle
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected