import { Breakpoint, useTheme, useMediaQuery } from '@mui/material';

export default function useMobile({ key = 'sm' }: { key?: number | Breakpoint } = {}) {
  const theme = useTheme();
  return useMediaQuery(theme.breakpoints.down(key));
}
