@zohodesk/components
Version:
Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development
25 lines (19 loc) • 529 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = isMobilePopover;
var _Config = require("../../../Provider/Config");
function isMobilePopover(needResponsive) {
// let { needResponsive } = props;
var windowWidth,
mobileWidth = (0, _Config.getLibraryConfig)('mobileWidth'),
isModel = false;
if (needResponsive) {
windowWidth = window.innerWidth;
if (windowWidth <= mobileWidth) {
isModel = true;
}
}
return isModel ? true : false;
}