'use client'; import { motion } from 'framer-motion'; import { useState, useEffect } from 'react'; interface GlowEffectProps { className?: string; color?: string; count?: number; } export function GlowEffect({ className = '', color = '#C41E3A', count = 3 }: GlowEffectProps) { const [glows, setGlows] = useState>([]); useEffect(() => { const generatedGlows = Array.from({ length: count }, (_, i) => ({ id: i, size: 150 + Math.random() * 100, x: Math.random() * 100, y: Math.random() * 100, delay: i * 2 })); setGlows(generatedGlows); }, [count]); if (glows.length === 0) { return
; } return (
{glows.map((glow) => ( ))}
); } export default GlowEffect;