()
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected