import { useMemo, } from "react"; import "./SignalParticles.css"; export interface SignalParticlesProps { color?: string; background?: string; density?: number; size?: number; speed?: number; animated?: boolean; className?: string; } export function SignalParticles({ color = "#b99cff", background = "#0d0d11", density = 30, size = 3, speed = 1, animated = true, className = "", }: SignalParticlesProps) { const particles = useMemo( () => Array.from({ length: Math.max( 1, density ), }).map( ( _, index ) => ({ id: index, left: (index * 37) % 100, top: (index * 53) % 100, delay: (index % 10) * 0.12, }) ), [ density, ] ); return (