Bob AI: fix build errors (attempt 1)

This commit is contained in:
kudinDmitriyUp
2026-04-16 06:13:21 +00:00
parent 688d670892
commit eaa26d9599

View File

@@ -1,6 +1,6 @@
import { useState, useEffect, RefObject } from "react";
import { useState, useEffect, type RefObject } from "react";
export const useParallax = (ref: RefObject<HTMLElement>, options?: { maxRotate?: number }) => {
export const useParallax = <T extends HTMLElement>(ref: RefObject<T>, options?: { maxRotate?: number }) => {
const [transform, setTransform] = useState("rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)");
const maxRotate = options?.maxRotate || 5;