()
| 50 | } |
| 51 | |
| 52 | export function usePreferences() { |
| 53 | const context = useContext(PreferencesContext); |
| 54 | if (context === undefined) { |
| 55 | throw new Error('usePreferences must be used within a PreferencesProvider'); |
| 56 | } |
| 57 | return context; |
| 58 | } |
no outgoing calls
no test coverage detected