decord/source/5358_useHeaderHeight.js

22 lines
592 B
JavaScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 5358
// Function ID: 5359
2026-08-06 08:05:19 +00:00
// Name: useHeaderHeight
2026-08-13 07:00:46 +00:00
// Dependencies: [19, 5357]
2026-08-06 08:05:19 +00:00
// Exports: useHeaderHeight
2026-08-13 07:00:46 +00:00
// Module 5358 (useHeaderHeight)
2026-08-06 08:05:19 +00:00
import noop from "noop";
const require = arg1;
export const useHeaderHeight = function useHeaderHeight() {
2026-08-13 07:00:46 +00:00
const context = React.useContext(require(5357) /* HeaderHeightContext */.HeaderHeightContext);
2026-08-06 08:05:19 +00:00
if (undefined === context) {
const _Error = Error;
const error = new Error("Couldn't find the header height. Are you inside a screen in a navigator with a header?");
throw error;
} else {
return context;
}
};