YesPlayMusic/packages/web/hooks/useIsMobile.ts

9 lines
183 B
TypeScript
Raw Normal View History

2022-06-08 00:07:04 +08:00
import useBreakpoint from './useBreakpoint'
const useIsMobile = () => {
const breakpoint = useBreakpoint()
return ['sm', 'md'].includes(breakpoint)
}
export default useIsMobile