import { useMemo } from "react";
import { useSelector } from "react-redux";
const useHasScreenSize = function () {
  let screenSizes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ["xs"];
  const screenWidth = useSelector(state => state.app.screenWidth);
  const isMobile = useMemo(() => {
    return screenSizes.includes(screenWidth);
  }, [screenWidth, screenSizes]);
  return isMobile;
};
export default useHasScreenSize;
//# sourceMappingURL=useHasScreenSize.js.map