import { useEffect, useState } from 'react' import TetrisLoading from '../ui/tetris-loader' /** * Cold-open loader: a Tetris board plays while the scene initialises, then the * whole overlay wipes upward. Calls onDone when the wipe finishes. */ export function Loader({ onDone }: { onDone: () => void }) { const [leaving, setLeaving] = useState(false) useEffect(() => { const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches const total = reduce ? 400 : 1900 const t1 = window.setTimeout(() => setLeaving(true), total) const t2 = window.setTimeout(onDone, total + 900) return () => { window.clearTimeout(t1) window.clearTimeout(t2) } }, [onDone]) return (

Kuch_Nhi_Aata loading ...

) }