22 lines
640 B
JavaScript
22 lines
640 B
JavaScript
// Module ID: 6391
|
|
// Function ID: 6392
|
|
// Name: useHeaderHeight
|
|
// Dependencies: [19, 6390]
|
|
// Exports: useHeaderHeight
|
|
|
|
// Module 6391 (useHeaderHeight)
|
|
import HeaderHeightContext from "HeaderHeightContext" /* 6390 */;
|
|
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;
|
|
}
|
|
};
|