install packages

This commit is contained in:
2025-12-24 11:20:50 +03:30
parent 87b5f80f1f
commit c5872fb762
91 changed files with 24445 additions and 4271 deletions

17
src/hooks/useDevice.ts Normal file
View File

@@ -0,0 +1,17 @@
import { useEffect, useState } from "react";
export default function useDevice() {
const [isMobile, setIsMobile] = useState(false);
useEffect(() => {
const checkIsMobile = () => {
setIsMobile(window.innerWidth < 768);
};
checkIsMobile();
window.addEventListener("resize", checkIsMobile);
return () => window.removeEventListener("resize", checkIsMobile);
}, []);
return isMobile;
}