const handleScrollBotto = () => { // @ts-ignore // за основу берется положение определенного элемента страницы const pos = document.getElementById(elementId).getBoundingClientRect() if (document.body.offsetHeight - (pos.height + pos.y) > 100) { setIsFetchingMore(true) } };