()
| 242 | } |
| 243 | |
| 244 | function useManagementState() { |
| 245 | let context = React.useContext(ManagementStateContext); |
| 246 | if (context === undefined) { |
| 247 | throw new Error( |
| 248 | 'useManagementState must be used within a ManagementProvider', |
| 249 | ); |
| 250 | } |
| 251 | return context; |
| 252 | } |
| 253 | |
| 254 | function useManagementDispatch() { |
| 255 | let context = React.useContext(ManagementDispatchContext); |
no outgoing calls
no test coverage detected