"use client"; import { cn } from "@/lib/utils"; type AgentWorkflowParticleScatterProps = { className?: string; particleSize?: number; particleCount?: number; }; export function AgentWorkflowParticleScatter({ className, particleSize, particleCount, }: AgentWorkflowParticleScatterProps) { const searchParams = new URLSearchParams(); if (typeof particleSize === "number" && Number.isFinite(particleSize) && particleSize > 0) { searchParams.set("particleSize", String(particleSize)); } if (typeof particleCount === "number" && Number.isFinite(particleCount) && particleCount > 0) { searchParams.set("particleCount", String(Math.round(particleCount))); } const src = searchParams.size ? `/particle-scatter-effect.html?${searchParams.toString()}` : "/particle-scatter-effect.html"; return (