decord/source/5424_useHeaderHeight.js
2026-08-25 06:04:03 +00:00

22 lines
640 B
JavaScript

// Module ID: 5424
// Function ID: 5425
// Name: useHeaderHeight
// Dependencies: [19, 5423]
// Exports: useHeaderHeight
// Module 5424 (useHeaderHeight)
import HeaderHeightContext from "HeaderHeightContext" /* 5423 */;
import closure_2 from "noop" /* 19 */;
require = arg1;
export const useHeaderHeight = function useHeaderHeight() {
const context = React.useContext(HeaderHeightContext.HeaderHeightContext);
if (undefined === context) {
const _Error = Error;
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;
}
};