aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/components/hooks.ts
blob: 523a4538ff9e0b52f56b7735bec7393d31194c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// TODO: Migrate hooks

export {
  useIsSmallScreen,
  useClickOutside,
  useScrollToBottom,
} from "~src/utilities/hooks";

import { useMediaQuery } from "react-responsive";
import { breakpoints } from "./breakpoints";

export function useMobile(): boolean {
  return useMediaQuery({ maxWidth: breakpoints.sm });
}