()
| 252 | } |
| 253 | |
| 254 | function useManagementDispatch() { |
| 255 | let context = React.useContext(ManagementDispatchContext); |
| 256 | if (context === undefined) { |
| 257 | throw new Error( |
| 258 | 'useManagementDispatch must be used within a ManagementProvider', |
| 259 | ); |
| 260 | } |
| 261 | return context; |
| 262 | } |
| 263 | |
| 264 | // ########################################################### |
| 265 |
no outgoing calls
no test coverage detected