refactor: share mobile breakpoint handling

This commit is contained in:
ajnart committed 2026-08-27 09:15:33 +02:00
1 parent 322d4a7fc4
commit 7e420bc087
5 files changed
+113 -144

No files matched your search

+1
View File
@@ -1 +1,2 @@
export * from "./use-is-mobile";
export * from "./use-translated-mantine-react-table";
+9
View File
@@ -0,0 +1,9 @@
"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})`);
};