()
| 194 | } |
| 195 | |
| 196 | export function useLanguage() { |
| 197 | const context = useContext(LanguageContext); |
| 198 | if (context === undefined) { |
| 199 | throw new Error('useLanguage must be used within a LanguageProvider'); |
| 200 | } |
| 201 | return context; |
| 202 | } |
no outgoing calls
no test coverage detected