| 4 | import useIntersectionObserver from '../useIntersectionObserver'; |
| 5 | |
| 6 | interface IProps { |
| 7 | src: string; |
| 8 | lazy?: boolean; |
| 9 | alt?: string; |
| 10 | className?: string; |
| 11 | style?: CSSProperties; |
| 12 | width?: number; |
| 13 | height?: number; |
| 14 | loader?: JSX.Element | null; |
| 15 | } |
| 16 | |
| 17 | function loadImage(src: string) { |
| 18 | return new Promise((resolve, reject) => { |
nothing calls this directly
no outgoing calls
no test coverage detected