import { k as useState, f as useEffect } from './dom-context-hooks.module-50442785.js';
import { b as useCallback } from './index.module-b23fdad8.js';

// import { IntlMessageFormat } from 'intl-messageformat';
function isMobile(breakPoint) {
  const [width, setWidth] = useState(window.innerWidth);
  const handleWindowResize = useCallback(() => setWidth(window.innerWidth), []);
  useEffect(() => {
    window.addEventListener("resize", handleWindowResize);
    return () => window.removeEventListener("resize", handleWindowResize);
  }, []);
  return width > breakPoint ? false : true;
}
function isValidColor(teststr) {
  return CSS.supports(`(color: ${teststr})`);
}
function isEmpty(value) {
  return (!value || (Object.keys(value).length === 0 && value.constructor === Object));
}

export { isValidColor as a, isMobile as b, isEmpty as i };
