"use client"; import { memo } from "react"; import { useButtonClick } from "./useButtonClick"; import { cls } from "@/lib/utils"; interface ButtonSlideBackgroundProps { text: string; onClick?: () => void; href?: string; className?: string; textClassName?: string; disabled?: boolean; ariaLabel?: string; type?: "button" | "submit" | "reset"; scrollToSection?: boolean; } const ButtonSlideBackground = ({ text, onClick, href, className = "", textClassName = "", disabled = false, ariaLabel, type = "button", scrollToSection, }: ButtonSlideBackgroundProps) => { const handleClick = useButtonClick(href, onClick, scrollToSection); const cubicBezier = "cubic-bezier(0.4, 0, 0, 1)"; return ( ); }; ButtonSlideBackground.displayName = "ButtonSlideBackground"; export default memo(ButtonSlideBackground);