()
| 69 | } |
| 70 | |
| 71 | export function useTheme(): ThemeContextType { |
| 72 | const context = useContext(ThemeContext); |
| 73 | if (context === undefined) { |
| 74 | throw new Error("useTheme must be used within a ThemeProvider"); |
| 75 | } |
| 76 | return context; |
| 77 | } |
| 78 | |
| 79 | const clientThemeCode = ` |
| 80 | ;(() => { |
no outgoing calls
no test coverage detected