File size: 196 Bytes
6ce4ca6
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import { MediaQuery } from "svelte/reactivity";

const MOBILE_BREAKPOINT = 768;

export class IsMobile extends MediaQuery {
	constructor() {
		super(`max-width: ${MOBILE_BREAKPOINT - 1}px`);
	}
}