forked from Archives/Athou_commafeed
5 lines
224 B
TypeScript
5 lines
224 B
TypeScript
|
|
import { useMediaQuery } from "@mantine/hooks"
|
||
|
|
import { Constants } from "app/constants"
|
||
|
|
|
||
|
|
export const useMobile = (breakpoint: string = Constants.layout.mobileBreakpoint) => !useMediaQuery(`(min-width: ${breakpoint})`)
|