1
0
mirror of https://github.com/whippyshou/mastodon synced 2025-01-23 10:14:43 +09:00
whippy-edition/app/assets/javascripts/components/is_mobile.jsx

6 lines
107 B
JavaScript

const LAYOUT_BREAKPOINT = 1024;
export function isMobile(width) {
return width <= LAYOUT_BREAKPOINT;
};