()
| 111 | } |
| 112 | |
| 113 | export function useSettings() { |
| 114 | const context = useContext(SettingsContext); |
| 115 | |
| 116 | if (!context) { |
| 117 | throw new Error('useSettings must be used within a SettingsProvider'); |
| 118 | } |
| 119 | |
| 120 | return context; |
| 121 | } |
no outgoing calls
no test coverage detected