added useRatio

This commit is contained in:
Mamalizz
2025-04-08 23:00:27 +03:30
parent 915084a289
commit d68685e48f
+12
View File
@@ -0,0 +1,12 @@
import { useWindowSize } from "@vueuse/core";
export const useRatio = () => {
const isMobile = computed(() => {
const { width: windowWidth } = useWindowSize();
return windowWidth.value < 1024;
});
return {
isMobile,
};
};