3b4ac976b6
This reverts commit 0018fdaebc
.
11 lines
287 B
JavaScript
11 lines
287 B
JavaScript
import useMedia from './use-media';
|
|
|
|
export function useIsMobile() {
|
|
const isMobile = useMedia(['(min-width: 901px)'], [false], true);
|
|
return isMobile;
|
|
}
|
|
|
|
export function useIsMediumScreen() {
|
|
const isMobile = useMedia(['(min-width: 1151px)'], [false], true);
|
|
return isMobile;
|
|
}
|