UNPKG

@grafana/runtime

Version:
17 lines (15 loc) 587 B
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