import React, { useMemo } from 'react'; import { motion } from 'framer-motion'; export const Particles: React.FC<{ count?: number; color?: string }> = ({ count = 20, color = 'rgba(59, 130, 246, 0.1)' }) => { const particles = useMemo(() => { return Array.from({ length: count }).map((_, i) => ({ id: i, size: Math.random() * 4 + 2, x: Math.random() * 100, y: Math.random() * 100, duration: Math.random() * 20 + 10, delay: Math.random() * 10, })); }, [count]); return (