()
| 55 | } |
| 56 | |
| 57 | function getViewportSize(): { width: number; height: number } { |
| 58 | return typeof window !== 'undefined' |
| 59 | ? { width: window.innerWidth, height: window.innerHeight } |
| 60 | : VIEWPORT_FALLBACK; |
| 61 | } |
| 62 | |
| 63 | export function getEstimatedModalPosition({ |
| 64 | estimatedWidth, |
no outgoing calls
no test coverage detected