import{k as useState,f as useEffect}from"./dom-context-hooks.module-50442785.js";import{b as useCallback}from"./index.module-b23fdad8.js";function isMobile(e){var t=useState(window.innerWidth),n=t[0],o=t[1];var r=useCallback((function(){return o(window.innerWidth)}),[]);useEffect((function(){window.addEventListener("resize",r);return function(){return window.removeEventListener("resize",r)}}),[]);return n>e?false:true}function isValidColor(e){return CSS.supports("(color: "+e+")")}function isEmpty(e){return!e||Object.keys(e).length===0&&e.constructor===Object}export{isValidColor as a,isMobile as b,isEmpty as i};