mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-12-02 05:23:39 +08:00
12 lines
224 B
TypeScript
12 lines
224 B
TypeScript
import { createBreakpoint } from 'react-use'
|
|
|
|
const useBreakpoint = createBreakpoint({
|
|
sm: 640,
|
|
md: 768,
|
|
lg: 1024,
|
|
xl: 1280,
|
|
'2xl': 1536,
|
|
}) as () => 'sm' | 'md' | 'lg' | 'xl' | '2xl'
|
|
|
|
export default useBreakpoint
|