()
| 41 | return createStore(DEFAULT_STATE); |
| 42 | } |
| 43 | function useVoiceStore() { |
| 44 | const store = useContext(VoiceContext); |
| 45 | if (!store) { |
| 46 | throw new Error("useVoiceState must be used within a VoiceProvider"); |
| 47 | } |
| 48 | return store; |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Subscribe to a slice of voice state. Only re-renders when the selected |
no outgoing calls
no test coverage detected