diff options
Diffstat (limited to 'app/assets/javascripts/components/is_mobile.jsx')
-rw-r--r-- | app/assets/javascripts/components/is_mobile.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/is_mobile.jsx b/app/assets/javascripts/components/is_mobile.jsx new file mode 100644 index 000000000..eaa6221e4 --- /dev/null +++ b/app/assets/javascripts/components/is_mobile.jsx @@ -0,0 +1,5 @@ +const LAYOUT_BREAKPOINT = 1024; + +export function isMobile(width) { + return width <= LAYOUT_BREAKPOINT; +}; |