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

Function getNextTheme

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

Source from the content-addressed store, hash-verified

126 };
127
128 const getNextTheme = () => {
129 const themes = Object.keys(themeConfig) as UserTheme[];
130 const currentIndex = themes.indexOf(userTheme);
131 const nextIndex = (currentIndex + 1) % themes.length;
132 return themes[nextIndex];
133 };
134
135 return (
136 <ThemeContext

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected