()
| 638 | } |
| 639 | |
| 640 | export const useExtensionState = () => { |
| 641 | const context = useContext(ExtensionStateContext) |
| 642 | |
| 643 | if (context === undefined) { |
| 644 | throw new Error("useExtensionState must be used within an ExtensionStateContextProvider") |
| 645 | } |
| 646 | |
| 647 | return context |
| 648 | } |
no outgoing calls