"use strict";

exports.__esModule = true;
exports.useIsMobile = void 0;
var _react = require("@wix/bex-core/react");
var _useSelector = require("../useSelector");
// CAIRO-3582: modify mobile detection to use user agent
// export { MOBILE_BREAKPOINT } from '@wix/bex-core';

const useIsMobile = () => {
  const pageState = (0, _react.usePageContext)();
  return (0, _useSelector.useSelector)(() => pageState.isMobile);
};
exports.useIsMobile = useIsMobile;
//# sourceMappingURL=useIsMobile.js.map