"use client"; import { memo } from "react"; import useElasticEffect from "./useElasticEffect"; import { useButtonClick } from "../useButtonClick"; import { cls } from "@/lib/utils"; interface ButtonElasticEffectProps { text: string; onClick?: () => void; href?: string; className?: string; textClassName?: string; disabled?: boolean; ariaLabel?: string; type?: "button" | "submit" | "reset"; } const ButtonElasticEffect = ({ text, onClick, href, className = "", textClassName = "", disabled = false, ariaLabel, type = "button", }: ButtonElasticEffectProps) => { const elasticRef = useElasticEffect(); const handleClick = useButtonClick(href, onClick); return ( ); }; ButtonElasticEffect.displayName = "ButtonElasticEffect"; export default memo(ButtonElasticEffect);