mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2025-02-28 14:17:41 +08:00
12 lines
225 B
TypeScript
12 lines
225 B
TypeScript
import { createBreakpoint } from 'react-use'
|
|
|
|
const useBreakpoint = createBreakpoint({
|
|
sm: 767,
|
|
md: 1023,
|
|
lg: 1279,
|
|
xl: 1535,
|
|
'2xl': 1536,
|
|
}) as () => 'sm' | 'md' | 'lg' | 'xl' | '2xl'
|
|
|
|
export default useBreakpoint
|