"use client";
import { motion } from "motion/react";
import { ArrowRight } from "lucide-react";
import { useButtonClick } from "@/hooks/useButtonClick";
import { cls } from "@/lib/utils";
interface ButtonArrowProps {
text: string;
variant?: "primary" | "secondary";
href?: string;
onClick?: () => void;
animate?: boolean;
animationDelay?: number;
className?: string;
}
const ButtonArrow = ({ text, variant = "primary", href = "#", onClick, animate = true, animationDelay = 0, className = "" }: ButtonArrowProps) => {
const handleClick = useButtonClick(href, onClick);
const button = (
{text}
);
if (!animate) return button;
return (
{button}
);
};
export default ButtonArrow;