"use client"; // Adapted from Kokonut UI (@dorianbaffier), MIT. See THIRD_PARTY_NOTICES.md. import { useEffect, useRef, useState, type ComponentProps, type CSSProperties, } from "react"; export function ParticleButton({ children, className = "", onClick, type = "button", ...props }: ComponentProps<"button">) { const [origin, setOrigin] = useState({ x: 0, y: 0 }); const [burst, setBurst] = useState(0); const [visible, setVisible] = useState(false); const timer = useRef | undefined>(undefined); useEffect(() => () => clearTimeout(timer.current), []); return ( ); }