"use client"; import { motion } from "motion/react"; import { cls } from "@/lib/utils"; import { useButtonClick } from "@/hooks/useButtonClick"; interface ButtonProps { text: string; variant?: "primary" | "secondary"; href?: string; onClick?: () => void; animate?: boolean; delay?: number; className?: string; } const Button = ({ text, variant = "primary", href, onClick, animate = false, delay = 0, className = "" }: ButtonProps) => { const handleClick = useButtonClick(href, onClick); const classes = cls( "flex items-center justify-center h-9 px-6 text-sm rounded cursor-pointer", variant === "primary" ? "primary-button text-primary-cta-text" : "secondary-button text-secondary-cta-text", className ); const button = href ? {text} : ; if (!animate) return button; return ( {button} ); }; export default Button;