lbry-desktop/ui/effects/use-is-mobile.js

7 lines
166 B
JavaScript
Raw Normal View History

2019-12-18 06:27:08 +01:00
import useMedia from './use-media';
export default function useIsMobile() {
const isMobile = useMedia(['(min-width: 901px)'], [false], true);
return isMobile;
}