mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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})`)
|