fork
Configure Feed
Select the types of activity you want to include in your feed.
mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
fork
Configure Feed
Select the types of activity you want to include in your feed.
1import {useMediaQuery} from 'react-responsive'
2import {isNative} from 'platform/detection'
3
4export function useWebMediaQueries() {
5 const isDesktop = useMediaQuery({minWidth: 1300})
6 const isTablet = useMediaQuery({minWidth: 800, maxWidth: 1300 - 1})
7 const isMobile = useMediaQuery({maxWidth: 800 - 1})
8 const isTabletOrMobile = isMobile || isTablet
9 const isTabletOrDesktop = isDesktop || isTablet
10 if (isNative) {
11 return {
12 isMobile: true,
13 isTablet: false,
14 isTabletOrMobile: true,
15 isTabletOrDesktop: false,
16 isDesktop: false,
17 }
18 }
19 return {isMobile, isTablet, isTabletOrMobile, isTabletOrDesktop, isDesktop}
20}