()
| 149 | } |
| 150 | |
| 151 | export 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 | }; |
no outgoing calls
no test coverage detected