UNPKG

@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

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; }