(win: Window)
| 81 | }; |
| 82 | |
| 83 | const isTablet = (win: Window) => { |
| 84 | const width = win.innerWidth; |
| 85 | const height = win.innerHeight; |
| 86 | const smallest = Math.min(width, height); |
| 87 | const largest = Math.max(width, height); |
| 88 | |
| 89 | return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400); |
| 90 | }; |
| 91 | |
| 92 | const isMobile = (win: Window) => matchMedia(win, '(any-pointer:coarse)'); |
| 93 |
nothing calls this directly
no test coverage detected