import { ButtonHTMLAttributes } from 'react';

export default function SuccessButton({ className = '', disabled, children, ...props }: ButtonHTMLAttributes<HTMLButtonElement>) {
    return (
        <button
            {...props}
            className={
                `flex items-center btn bg-success-main outline-none text-white hover:bg-success-hover active:bg-success-pressed ${
                    disabled && 'opacity-25'
                } ` + className
            }
            disabled={disabled}
        >
            {children}
        </button>
    );
}
