decord/source/1575_usePreventRemoveContext.js
2026-08-06 08:05:19 +00:00

21 lines
627 B
JavaScript

// Module ID: 1575
// Function ID: 1576
// Name: usePreventRemoveContext
// Dependencies: [19, 1550]
// Exports: usePreventRemoveContext
// Module 1575 (usePreventRemoveContext)
import noop from "noop";
const require = arg1;
export const usePreventRemoveContext = function usePreventRemoveContext() {
const context = React.useContext(require(1550) /* PreventRemoveContext */.PreventRemoveContext);
if (null == context) {
const _Error = Error;
const error = new Error("Couldn't find the prevent remove context. Is your component inside NavigationContent?");
throw error;
} else {
return context;
}
};