Bob AI: fix build errors (attempt 1)

This commit is contained in:
kudinDmitriyUp
2026-04-18 12:55:02 +00:00
parent e2bcaa5c81
commit aaef7799c2

View File

@@ -1,6 +1,6 @@
import { useState, useEffect, RefObject } from 'react';
import { useState, useEffect, type RefObject } from 'react';
export default function useOnScreen(ref: RefObject<HTMLElement>, rootMargin = '0px') {
export default function useOnScreen<T extends HTMLElement>(ref: RefObject<T>, rootMargin = '0px') {
const [isIntersecting, setIntersecting] = useState(false);
useEffect(() => {