This commit is contained in:
Hamed
2026-07-30 10:57:49 +04:00
parent e03a4dfcb0
commit 31f261bf5f
102 changed files with 8782 additions and 1432 deletions
+11
View File
@@ -0,0 +1,11 @@
"use client";
import { useEffect, useLayoutEffect } from "react";
/**
* useLayoutEffect throws a warning during SSR. This swaps to a
* plain useEffect on the server so GSAP-driven components can be
* imported anywhere without triggering Next.js warnings.
*/
export const useIsomorphicLayoutEffect =
typeof window !== "undefined" ? useLayoutEffect : useEffect;