"use client" import { useEffect, useState } from "react" export function SparkleEffect() { const [sparkles, setSparkles] = useState>([]) useEffect(() => { const newSparkles = Array.from({ length: 20 }, (_, i) => ({ id: i, x: Math.random() * 100, y: Math.random() * 100, delay: Math.random() * 2, })) setSparkles(newSparkles) }, []) return (
{sparkles.map((sparkle) => (
))}
) }