"use client"; import { motion } from "motion/react"; import { useButtonClick } from "@/hooks/useButtonClick"; import { cls } from "@/lib/utils"; interface ButtonBounceProps { text: string; variant?: "primary" | "secondary"; href?: string; onClick?: () => void; animate?: boolean; animationDelay?: number; className?: string; } const ButtonBounce = ({ text, variant = "primary", href = "#", onClick, animate = true, animationDelay = 0, className = "" }: ButtonBounceProps) => { const handleClick = useButtonClick(href, onClick); const button = ( {[...text].map((char, index) => ( {char} ))} ); if (!animate) return button; return ( {button} ); }; export default ButtonBounce;