* fix: improve mobile header and board menus * fix: keep mobile header logo condensed * refactor: share mobile breakpoint handling
10 lines
250 B
TypeScript
10 lines
250 B
TypeScript
"use client";
|
|
|
|
import { useMantineTheme } from "@mantine/core";
|
|
import { useMediaQuery } from "@mantine/hooks";
|
|
|
|
export const useIsMobile = () => {
|
|
const theme = useMantineTheme();
|
|
return useMediaQuery(`(max-width: ${theme.breakpoints.sm})`);
|
|
};
|