mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-12-11 19:53:42 +08:00
9 lines
183 B
TypeScript
9 lines
183 B
TypeScript
|
import useBreakpoint from './useBreakpoint'
|
||
|
|
||
|
const useIsMobile = () => {
|
||
|
const breakpoint = useBreakpoint()
|
||
|
return ['sm', 'md'].includes(breakpoint)
|
||
|
}
|
||
|
|
||
|
export default useIsMobile
|