@grafana/runtime
Version:
Grafana Runtime Library
17 lines (15 loc) • 587 B
JavaScript
let chromeHeaderHeightHook = undefined;
const setChromeHeaderHeightHook = (hook) => {
chromeHeaderHeightHook = hook;
};
const useChromeHeaderHeight = () => {
if (!chromeHeaderHeightHook) {
if (process.env.NODE_ENV !== "production") {
throw new Error("useChromeHeaderHeight hook not found in @grafana/runtime");
}
console.error("useChromeHeaderHeight hook not found");
}
return chromeHeaderHeightHook == null ? undefined : chromeHeaderHeightHook();
};
export { setChromeHeaderHeightHook, useChromeHeaderHeight };
//# sourceMappingURL=chromeHeaderHeight.mjs.map