about summary refs log tree commit diff
path: root/app/assets/javascripts/components/is_mobile.jsx
blob: eaa6221e41ed935a23bc238338e2bf0e5bddc867 (plain) (blame)
1
2
3
4
5
const LAYOUT_BREAKPOINT = 1024;

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