'use client' import { motion } from 'framer-motion' import { useEffect, useState } from 'react' export function Confetti() { const [particles, setParticles] = useState>([]) useEffect(() => { const colors = ['#58a6ff', '#238636', '#d29922', '#da3633'] const newParticles = Array.from({ length: 50 }, (_, i) => ({ id: i, x: Math.random() * 100, color: colors[Math.floor(Math.random() * colors.length)] })) setParticles(newParticles) }, []) return (
{particles.map((particle) => ( ))}
) }