UNPKG

@zohodesk/components

Version:

In this Package, we Provide Some Basic Components to Build Web App

17 lines (14 loc) 418 B
import { getLibraryConfig } from "../../Provider/Config"; export default function isMobilePopover(needResponsive) { // let { needResponsive } = props; let windowWidth, mobileWidth = getLibraryConfig('mobileWidth'), isModel = false; if (needResponsive) { windowWidth = window.innerWidth; if (windowWidth <= mobileWidth) { isModel = true; } } return isModel ? true : false; }