"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react"),u=require("./context.js"),v=require("../../../../../../../@emotion_react@11.9.3_hszxbvtkrbiogp66pfduqrogei/node_modules/@emotion/react/dist/emotion-react.browser.esm.js");function a(){return a=Object.assign||function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},a.apply(this,arguments)}var s=function(){var e=r.useContext(u.EuiThemeContext),t=r.useContext(u.EuiColorModeContext),o=r.useContext(u.EuiModificationsContext);return{euiTheme:e,colorMode:t,modifications:o}},T=function(e){var t=e.displayName||e.name||"ComponentWithTheme",o=function(c,d){var n=s(),h=n.euiTheme,f=n.colorMode,l=n.modifications;return v.createElement(e,a({theme:{euiTheme:h,colorMode:f,modifications:l},ref:d},c))},m=r.forwardRef(o);return m.displayName=t,m};exports.useEuiTheme=s;exports.withEuiTheme=T;
//# sourceMappingURL=hooks.js.map
