import clsx from "clsx"; import LoadingDots from "../icons/LoadingDots"; interface ButtonProps extends React.ButtonHTMLAttributes { className?: string; title: string; loading?: boolean; disabled?: boolean; type?: "button" | "submit" | "reset"; } export function Button({ className = "", title, loading = false, disabled = false, type, ...rest }: ButtonProps) { const buttonClasses = clsx( "relative flex w-full text-lg cursor-pointer font-outfit font-semibold items-center justify-center rounded-xl bg-blue-600 p-3 tracking-wide text-white", "hover:opacity-90", { "opacity-50 cursor-wait ": loading || disabled, }, className ); return ( ); }