UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

18 lines (17 loc) 621 B
/** * DevExtreme (esm/__internal/ui/html_editor/utils/small_screen.js) * Version: 25.1.3 * Build date: Wed Jun 25 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import devices from "../../../../core/devices"; import { getCurrentScreenFactor, hasWindow } from "../../../../core/utils/window"; export const isSmallScreen = () => { const screenFactor = hasWindow() ? getCurrentScreenFactor() : null; return "phone" === devices.real().deviceType || "xs" === screenFactor };