()
| 533 | |
| 534 | // eslint-disable-next-line react-refresh/only-export-components -- co-located hook + provider |
| 535 | export function useGraphInteraction(): GraphInteractionState { |
| 536 | const ctx = useContext(GraphInteractionContext); |
| 537 | if (!ctx) { |
| 538 | throw new Error( |
| 539 | 'useGraphInteraction must be used within a GraphInteractionProvider', |
| 540 | ); |
| 541 | } |
| 542 | return ctx; |
| 543 | } |
no outgoing calls
no test coverage detected