MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / useTheme

Function useTheme

apps/start/src/components/theme-provider.tsx:151–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151export const useTheme = () => {
152 const context = use(ThemeContext);
153 if (!context) {
154 throw new Error('useTheme must be used within a ThemeProvider');
155 }
156
157 return context;
158};

Callers 11

JsonEditorFunction · 0.90
ChartFunction · 0.90
OverviewUserJourneyFunction · 0.90
ThemeToggleFunction · 0.85
useFunnelStepsFunction · 0.85
PartLabelFunction · 0.85
ProfileToggleFunction · 0.85
BarHoverFunction · 0.85
map-canvas.tsxFile · 0.85
ToasterFunction · 0.85
ToasterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected