()
| 11 | } |
| 12 | |
| 13 | function getDimensions() { |
| 14 | if (typeof window === "undefined") return null; |
| 15 | |
| 16 | return { width: window.innerWidth, height: window.innerHeight }; |
| 17 | } |
| 18 | |
| 19 | export function useMediaQuery() { |
| 20 | const [device, setDevice] = useState<"mobile" | "tablet" | "desktop" | null>( |
no outgoing calls
no test coverage detected
searching dependent graphs…