mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-12-02 05:23:39 +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
|